Function at 0x100347a0
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 + 0x218]
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 + 0x2d0]
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 + 0x2d4]
push ecx
push eax
call edi
cmp dword [ebp + 0x2bc], 0
jne 0x100352b4
xor esi, esi
cmp dword [ebp + 0x2c4], esi
jne 0x100352b4
cmp dword [ebp + 0x2c0], esi
jne 0x1003528d
cmp dword [ebp + 0x2c8], esi
jne 0x1003528d
mov edx, dword [0x1006eb44]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edx
mov byte [esp + 0x5c], 1
mov eax, dword [ebp + 0x290]
lea edi, [ebp + 0x298]
push eax
mov edx, edi
call fcn.100086e0
cmp dword [ebp + 0x2b0], esi
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
je 0x100351bd
mov ecx, eax
and ecx, 2
mov dword [esp + 0x64], ecx
jne 0x100348a9
test al, 4
je 0x100351bd
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 + 0x2cc], 0
cmp dword [ecx - 8], 0
mov edi, 1
je 0x10035136
mov ebx, dword [esp + 0x18]
test bl, 4
je 0x10034b05
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.10039e50
mov byte [esp + 0x64], al
mov byte [esp + 0x5c], 4
call fcn.10015b40
cmp byte [esp + 0x64], 0
je 0x100349bf
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.1004a2a0
test al, al
je 0x10034985
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x10034aea
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 0x10034ad7
mov ecx, ebx
call fcn.1004a2a0
test al, al
jne 0x10034a03
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 0x10034ad7
test dword [esp + 0x18], 0x40000
jne 0x10034a74
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10034a74
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 0x10034a63
mov dword [ebp + 0x2cc], 1
xor edi, edi
jmp 0x10034a6b
mov dword [esp + 0x20], 1
lea esi, [esp + 0x64]
call fcn.10015b40
cmp dword [ebp + 0x2cc], 0
jne 0x10034aea
cmp dword [esp + 0x18], 0
jne 0x10034aea
test edi, edi
je 0x10034aea
cmp dword [esp + 0x20], 0
jne 0x10034aea
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10034aea
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 0x10034ae1
mov dword [ebp + 0x2cc], 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 0x1003512c
mov eax, dword [ebp + 0x290]
lea esi, [esp + 0x30]
lea edi, [ebp + 0x298]
call fcn.10010340
mov eax, dword [eax]
cmp eax, dword [ebp + 0x294]
jne 0x10034ef4
xor edi, edi
cmp dword [esp + 0x64], edi
je 0x10034ef4
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 0x10034cdf
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.10039e50
mov bl, al
mov byte [esp + 0x5c], 0xe
call fcn.10015b40
test bl, bl
je 0x10034c1e
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.1004a2a0
test al, al
je 0x10034be0
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x10034cbb
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 0x10034ca8
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10034c60
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 0x10034ca8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10034cbb
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 0x10034cb2
mov dword [ebp + 0x2cc], 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 0x10035123
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 0x10034ed9
mov eax, dword [esp + 0x48]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x10034ed9
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.10039e50
mov bl, al
mov byte [esp + 0x5c], 0x16
call fcn.10015b40
test bl, bl
je 0x10034de9
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.1004a2a0
test al, al
je 0x10034d9b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x10034e9a
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 + 0x2cc], 1
jmp 0x10034e91
lea esi, [esp + 0x40]
call fcn.100092a0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10034e37
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 0x10034dd4
lea esi, [esp + 0x40]
call fcn.100092a0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10034e9a
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 0x10034eb4
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 0x10034d12
lea esi, [esp + 0x64]
mov dword [ebp + 0x2cc], 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 0x10035123
cmp dword [esp + 0x64], 0
je 0x10035136
mov edx, dword [0x1006eb44]
mov dword [esp + 0x30], edx
test ebx, 0x8000000
mov byte [esp + 0x5c], 0x1b
lea ecx, [esp + 0x14]
je 0x10034f82
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 0x10034f79
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 + 0x2cc], 1
call fcn.10015b40
lea esi, [esp + 0x2c]
jmp 0x10035123
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.10039e50
mov bl, al
mov byte [esp + 0x5c], 0x20
call fcn.10015b40
test bl, bl
je 0x1003502c
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.1004a2a0
test al, al
je 0x10034ff2
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x1003510d
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 0x100350fa
mov ecx, edi
call fcn.1004a2a0
test al, al
jne 0x10035071
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 0x100350fa
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100350b2
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 0x100350fa
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003510d
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 0x10035104
mov dword [ebp + 0x2cc], 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 + 0x2cc], 0
je 0x100351a3
mov edx, dword [ebp + 0x290]
mov eax, dword [ebp + 0x298]
push edx
push 0
lea edi, [ebp + 0x298]
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 0x10035196
lea esi, [esp + 0x14]
mov dword [ebp + 0x2b0], 1
call fcn.10015b40
lea esi, [esp + 0x38]
call fcn.100156a0
jmp 0x100352ca
xor eax, eax
lea esi, [esp + 0x64]
call fcn.10028da0
jmp 0x100351b9
mov ecx, dword [ebp + 0x290]
mov eax, dword [esp + 0x14]
push ecx
lea ecx, [ebp + 0x298]
call fcn.10010360
mov eax, dword [esp + 0x18]
test eax, 0x100
je 0x10035273
test al, 2
je 0x10035273
cmp dword [ebp + 0x2b0], 0
jne 0x100351f0
mov edx, dword [ebp + 0x290]
push edx
lea eax, [ebp + 0x298]
push eax
lea esi, [esp + 0x1c]
call fcn.10008530
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 0
jne 0x10035273
mov eax, dword [ebp + 0x290]
lea esi, [esp + 0x30]
lea edi, [ebp + 0x298]
call fcn.100084f0
mov esi, dword [eax]
test esi, esi
je 0x10035221
mov dword [ebp + 0x2b8], 1
jmp 0x10035240
mov eax, dword [ebp + 0x290]
lea esi, [esp + 0x30]
call fcn.10035620
mov esi, dword [eax]
test esi, esi
je 0x10035273
mov dword [ebp + 0x2b8], 0
mov ecx, dword [ebp + 0x290]
push ecx
mov ebx, ebp
call fcn.10039440
mov edx, dword [ebp + 0x298]
push esi
push 9
push 0x110b
push edx
mov dword [ebp + 0x290], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp + 0x2b4], 1
lea esi, [esp + 0x14]
mov dword [ebp + 0x2b0], 1
call fcn.10015b40
mov eax, dword [esp + 0x3c]
push eax
jmp 0x100352bf
push esi
push esi
push esi
push 0x1005e048
lea ecx, [ebp + 0x298]
push ecx
mov ecx, dword [ebp + 0x290]
mov edx, 1
mov dword [ebp + 0x2c0], esi
call fcn.10009dc0
jmp 0x100352be
mov dword [ebp + 0x2bc], 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