Function at 0x10031f50
Capabilities:
Check if file exists
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x1005b6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp + 0x1b4]
mov ebx, dword [0x10070828]
push eax
push 0x10070828
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x5c], 0
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4bf
push eax
call esi
mov ecx, dword [ebp + 0x520]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push ecx
push eax
call edi
mov ecx, dword [ebp + 4]
push 0x405
push ecx
call esi
mov ecx, dword [ebp + 0x524]
push ecx
push eax
call edi
cmp dword [ebp + 0x50c], 0
jne 0x10032a64
xor esi, esi
cmp dword [ebp + 0x514], esi
jne 0x10032a64
cmp dword [ebp + 0x510], esi
jne 0x10032a3d
cmp dword [ebp + 0x518], esi
jne 0x10032a3d
mov edx, dword [0x1006eb44]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edx
mov byte [esp + 0x5c], 1
mov eax, dword [ebp + 0x4e0]
lea edi, [ebp + 0x4e8]
push eax
mov edx, edi
call fcn.100086e0
cmp dword [ebp + 0x500], esi
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
je 0x1003296d
mov ecx, eax
and ecx, 2
mov dword [esp + 0x64], ecx
jne 0x10032059
test al, 4
je 0x1003296d
lea esi, [esp + 0x30]
mov eax, edi
call fcn.100356b0
mov edi, dword [eax]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push edi
call esi
push edi
mov ebx, eax
call esi
mov esi, eax
lea eax, [esp + 0x14]
call fcn.10014530
add ebx, 1
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
call fcn.10015330
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x51c], 0
cmp dword [ecx - 8], 0
mov edi, 1
je 0x100328e6
mov ebx, dword [esp + 0x18]
test bl, 4
je 0x100322b5
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
call fcn.10015820
mov eax, dword [0x1006eb44]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x5c], 4
mov ebx, dword [esp + 0x2c]
lea esi, [esp + 0x24]
call fcn.10015b70
mov edx, esi
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebp
mov byte [esp + 0x6c], 5
call fcn.10037ef0
mov byte [esp + 0x64], al
mov byte [esp + 0x5c], 4
call fcn.10015b40
cmp byte [esp + 0x64], 0
je 0x1003216f
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.1004a2a0
test al, al
je 0x10032135
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x1003229a
mov edx, dword [0x1006eb44]
mov dword [esp + 0x64], edx
push ebx
lea eax, [esp + 0x68]
push 0x16e
push eax
mov byte [esp + 0x68], 6
call fcn.1001ad50
mov ecx, dword [esp + 0x70]
mov edx, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10032287
mov ecx, ebx
call fcn.1004a2a0
test al, al
jne 0x100321b3
mov eax, dword [0x1006eb44]
mov dword [esp + 0x64], eax
push ebx
lea ecx, [esp + 0x68]
push 0x16f
push ecx
mov byte [esp + 0x68], 7
call fcn.1001ad50
mov edx, dword [esp + 0x70]
mov eax, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10032287
test dword [esp + 0x18], 0x40000
jne 0x10032224
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10032224
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x64], ecx
push ebx
lea edx, [esp + 0x68]
push 0x170
push edx
mov byte [esp + 0x68], 8
call fcn.1001ad50
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 4]
add esp, 0xc
push 0x134
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x10032213
mov dword [ebp + 0x51c], 1
xor edi, edi
jmp 0x1003221b
mov dword [esp + 0x20], 1
lea esi, [esp + 0x64]
call fcn.10015b40
cmp dword [ebp + 0x51c], 0
jne 0x1003229a
cmp dword [esp + 0x18], 0
jne 0x1003229a
test edi, edi
je 0x1003229a
cmp dword [esp + 0x20], 0
jne 0x1003229a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003229a
mov edx, dword [0x1006eb44]
mov dword [esp + 0x64], edx
push ebx
lea eax, [esp + 0x68]
push 0x171
push eax
mov byte [esp + 0x68], 9
call fcn.1001ad50
mov ecx, dword [esp + 0x70]
mov edx, dword [ebp + 4]
add esp, 0xc
push 0x134
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x10032291
mov dword [ebp + 0x51c], 1
lea esi, [esp + 0x64]
call fcn.10015b40
lea esi, [esp + 0x1c]
call fcn.10015b40
lea esi, [esp + 0x28]
call fcn.10015b40
lea esi, [esp + 0x2c]
jmp 0x100328dc
mov eax, dword [ebp + 0x4e0]
lea esi, [esp + 0x30]
lea edi, [ebp + 0x4e8]
call fcn.10010340
mov eax, dword [eax]
cmp eax, dword [ebp + 0x4e4]
jne 0x100326a4
xor edi, edi
cmp dword [esp + 0x64], edi
je 0x100326a4
mov eax, dword [0x1006eb44]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x24]
mov byte [esp + 0x5c], 0xa
call fcn.10015820
mov byte [esp + 0x5c], 0xb
mov ecx, dword [esp + 0x24]
push 0x3b
push ecx
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
cmp eax, edi
jne 0x1003248f
lea ecx, [esp + 0x14]
lea eax, [esp + 0x28]
call fcn.10015820
mov eax, dword [0x1006eb44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x5c], 0xe
mov edi, dword [esp + 0x28]
mov ebx, edi
lea esi, [esp + 0x64]
call fcn.10015b70
mov edx, esi
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
mov byte [esp + 0x6c], 0xf
call fcn.10037ef0
mov bl, al
mov byte [esp + 0x5c], 0xe
call fcn.10015b40
test bl, bl
je 0x100323ce
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.1004a2a0
test al, al
je 0x10032390
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x1003246b
mov edx, dword [0x1006eb44]
mov dword [esp + 0x64], edx
mov byte [esp + 0x5c], 0x10
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
push 0x16e
push ecx
call fcn.1001ad50
mov edx, dword [esp + 0x70]
mov eax, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10032458
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10032410
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x64], ecx
push edi
lea edx, [esp + 0x68]
push 0x16e
push edx
mov byte [esp + 0x68], 0x11
call fcn.1001ad50
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10032458
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003246b
mov edx, dword [0x1006eb44]
mov dword [esp + 0x64], edx
push edi
lea eax, [esp + 0x68]
push 0x170
push eax
mov byte [esp + 0x68], 0x12
call fcn.1001ad50
mov ecx, dword [esp + 0x70]
mov edx, dword [ebp + 4]
add esp, 0xc
push 0x134
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x10032462
mov dword [ebp + 0x51c], 1
lea esi, [esp + 0x64]
call fcn.10015b40
lea esi, [esp + 0x1c]
call fcn.10015b40
lea esi, [esp + 0x2c]
call fcn.10015b40
lea esi, [esp + 0x28]
call fcn.10015b40
lea esi, [esp + 0x24]
jmp 0x100328d3
mov eax, dword [0x1006eb44]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
push 1
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1c]
push 0x10060c24
push edx
mov byte [esp + 0x6c], 0x14
call fcn.1004ad60
add esp, 0x10
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x10032689
mov eax, dword [esp + 0x48]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x10032689
mov eax, dword [0x1006eb44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x40]
mov byte [esp + 0x5c], 0x16
call fcn.100092a0
mov ebx, dword [eax]
lea esi, [esp + 0x2c]
call fcn.10015b70
mov eax, esi
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push ebp
mov byte [esp + 0x6c], 0x17
call fcn.10037ef0
mov bl, al
mov byte [esp + 0x5c], 0x16
call fcn.10015b40
test bl, bl
je 0x10032599
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.1004a2a0
test al, al
je 0x1003254b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x1003264a
mov eax, dword [0x1006eb44]
mov dword [esp + 0x64], eax
lea esi, [esp + 0x40]
mov byte [esp + 0x5c], 0x18
call fcn.100092a0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x68]
push 0x16e
push edx
call fcn.1001ad50
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp + 0x51c], 1
jmp 0x10032641
lea esi, [esp + 0x40]
call fcn.100092a0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100325e7
mov edx, dword [0x1006eb44]
mov dword [esp + 0x64], edx
mov byte [esp + 0x5c], 0x19
call fcn.100092a0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x68]
push 0x16e
push ecx
call fcn.1001ad50
mov edx, dword [esp + 0x70]
mov eax, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push edx
push eax
jmp 0x10032584
lea esi, [esp + 0x40]
call fcn.100092a0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003264a
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x64], ecx
mov byte [esp + 0x5c], 0x1a
call fcn.100092a0
mov eax, dword [eax]
push eax
lea edx, [esp + 0x68]
push 0x170
push edx
call fcn.1001ad50
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 4]
add esp, 0xc
push 0x134
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x10032664
lea esi, [esp + 0x64]
call fcn.10015b40
lea esi, [esp + 0x1c]
call fcn.10015b40
lea esi, [esp + 0x20]
call fcn.10015b40
add edi, 1
jmp 0x100324c2
lea esi, [esp + 0x64]
mov dword [ebp + 0x51c], 1
call fcn.10015b40
lea esi, [esp + 0x1c]
call fcn.10015b40
lea esi, [esp + 0x20]
call fcn.10015b40
lea esi, [esp + 0x40]
call fcn.10028dd0
lea esi, [esp + 0x28]
call fcn.10015b40
lea esi, [esp + 0x24]
jmp 0x100328d3
cmp dword [esp + 0x64], 0
je 0x100328e6
mov edx, dword [0x1006eb44]
mov dword [esp + 0x30], edx
test ebx, 0x8000000
mov byte [esp + 0x5c], 0x1b
lea ecx, [esp + 0x14]
je 0x10032732
lea eax, [esp + 0x2c]
call fcn.10015820
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x10032729
mov eax, dword [0x1006eb44]
mov dword [esp + 0x64], eax
push esi
lea ecx, [esp + 0x68]
push 0x172
push ecx
mov byte [esp + 0x68], 0x1d
call fcn.1001ad50
mov edx, dword [esp + 0x70]
mov eax, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x64]
mov dword [ebp + 0x51c], 1
call fcn.10015b40
lea esi, [esp + 0x2c]
jmp 0x100328d3
lea eax, [esp + 0x28]
call fcn.10015820
mov eax, dword [0x1006eb44]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x5c], 0x20
mov edi, dword [esp + 0x28]
mov ebx, edi
lea esi, [esp + 0x64]
call fcn.10015b70
mov ecx, esi
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
push ebp
mov byte [esp + 0x6c], 0x21
call fcn.10037ef0
mov bl, al
mov byte [esp + 0x5c], 0x20
call fcn.10015b40
test bl, bl
je 0x100327dc
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.1004a2a0
test al, al
je 0x100327a2
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x100328bd
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x64], ecx
push edi
lea edx, [esp + 0x68]
push 0x16e
push edx
mov byte [esp + 0x68], 0x22
call fcn.1001ad50
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100328aa
mov ecx, edi
call fcn.1004a2a0
test al, al
jne 0x10032821
mov edx, dword [0x1006eb44]
mov dword [esp + 0x64], edx
push edi
lea eax, [esp + 0x68]
push 0x16e
push eax
mov byte [esp + 0x68], 0x23
call fcn.1001ad50
mov ecx, dword [esp + 0x70]
mov edx, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100328aa
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10032862
mov eax, dword [0x1006eb44]
mov dword [esp + 0x64], eax
push edi
lea ecx, [esp + 0x68]
push 0x16e
push ecx
mov byte [esp + 0x68], 0x24
call fcn.1001ad50
mov edx, dword [esp + 0x70]
mov eax, dword [ebp + 4]
add esp, 0xc
push 0x30
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100328aa
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100328bd
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x64], ecx
push edi
lea edx, [esp + 0x68]
push 0x170
push edx
mov byte [esp + 0x68], 0x25
call fcn.1001ad50
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 4]
add esp, 0xc
push 0x134
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x100328b4
mov dword [ebp + 0x51c], 1
lea esi, [esp + 0x64]
call fcn.10015b40
lea esi, [esp + 0x24]
call fcn.10015b40
lea esi, [esp + 0x2c]
call fcn.10015b40
lea esi, [esp + 0x28]
call fcn.10015b40
lea esi, [esp + 0x30]
mov byte [esp + 0x5c], 1
call fcn.10015b40
cmp dword [ebp + 0x51c], 0
je 0x10032953
mov edx, dword [ebp + 0x4e0]
mov eax, dword [ebp + 0x4e8]
push edx
push 0
lea edi, [ebp + 0x4e8]
push 0x1141
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [esp + 0x64]
mov eax, edi
call fcn.100356b0
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x64], eax
jne 0x10032946
lea esi, [esp + 0x14]
mov dword [ebp + 0x500], 1
call fcn.10015b40
lea esi, [esp + 0x38]
call fcn.100156a0
jmp 0x10032a7a
xor eax, eax
lea esi, [esp + 0x64]
call fcn.10028da0
jmp 0x10032969
mov ecx, dword [ebp + 0x4e0]
mov eax, dword [esp + 0x14]
push ecx
lea ecx, [ebp + 0x4e8]
call fcn.10010360
mov eax, dword [esp + 0x18]
test eax, 0x100
je 0x10032a23
test al, 2
je 0x10032a23
cmp dword [ebp + 0x500], 0
jne 0x100329a0
mov edx, dword [ebp + 0x4e0]
push edx
lea eax, [ebp + 0x4e8]
push eax
lea esi, [esp + 0x1c]
call fcn.10008530
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 0
jne 0x10032a23
mov eax, dword [ebp + 0x4e0]
lea esi, [esp + 0x30]
lea edi, [ebp + 0x4e8]
call fcn.100084f0
mov esi, dword [eax]
test esi, esi
je 0x100329d1
mov dword [ebp + 0x508], 1
jmp 0x100329f0
mov eax, dword [ebp + 0x4e0]
lea esi, [esp + 0x30]
call fcn.10035620
mov esi, dword [eax]
test esi, esi
je 0x10032a23
mov dword [ebp + 0x508], 0
mov ecx, dword [ebp + 0x4e0]
push ecx
mov ebx, ebp
call fcn.100374e0
mov edx, dword [ebp + 0x4e8]
push esi
push 9
push 0x110b
push edx
mov dword [ebp + 0x4e0], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x504], 1
lea esi, [esp + 0x14]
mov dword [ebp + 0x500], 1
call fcn.10015b40
mov eax, dword [esp + 0x3c]
push eax
jmp 0x10032a6f
push esi
push esi
push esi
push 0x1005e048
lea ecx, [ebp + 0x4e8]
push ecx
mov ecx, dword [ebp + 0x4e0]
mov edx, 1
mov dword [ebp + 0x510], esi
call fcn.10009dc0
jmp 0x10032a6e
mov dword [ebp + 0x50c], 0
push ebx
push 0x10070828
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4