Function at 0x10042d50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005b25c
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x6a0], eax
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x6b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x1006ffd8
lea ecx, [esp + 0x4a8]
push ecx
mov dword [esp + 0x18], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x4a4]
push edx
call edi
lea ebx, [esp + eax*2 + 0x4a6]
push 0x10070018
push ebx
call esi
push ebx
call edi
lea ebx, [ebx + eax*2 + 2]
push 0x10070024
push ebx
call esi
push ebx
call edi
lea ebx, [ebx + eax*2 + 2]
push 0x10070044
push ebx
call esi
push ebx
call edi
lea ebx, [ebx + eax*2 + 2]
mov eax, dword [esp + 0x10]
mov word [ebx], 0
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x4a8]
push ecx
push 0
push 0x10060f70
lea esi, [esp + 0x2c]
call fcn.100400e0
mov dword [esp + 0x1c], vtable.WTL::CFileDialog.0
mov dword [esp + 0x6c0], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.1003a0e0
cmp eax, 1
jne 0x10043001
mov ebx, dword [0x1006eb44]
lea edx, [esp + 0x298]
shr edx, 0x10
mov dword [esp + 0x14], ebx
jne 0x10042eaa
lea eax, [esp + 0x298]
movzx eax, ax
push eax
lea ecx, [esp + 0x18]
call fcn.10013a10
mov ebx, dword [esp + 0x14]
push ebx
mov byte [esp + 0x6c4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10042ee4
mov ecx, dword [esp + 0x10]
push ebx
push 0x148
call fcn.10048860
lea ecx, [ebx - 0xc]
cmp ecx, 0x1006eb34
je 0x10043001
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x10042ff4
lea ecx, [esp + 0x298]
push ecx
call edi
mov esi, eax
test esi, esi
je 0x10042e6a
mov ecx, esi
lea edx, [esp + 0x14]
call fcn.10011c80
test eax, eax
je 0x10042e66
mov ebx, dword [esp + 0x14]
lea edx, [esi + esi]
push edx
lea eax, [esp + 0x29c]
push eax
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x10042e6a
mov edx, dword [0x1006eb44]
mov dword [esp + 0x18], edx
lea esi, [esp + 0x18]
mov ecx, ebx
mov byte [esp + 0x6c0], 2
call fcn.10046d10
test al, al
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
je 0x10042fb3
cmp dword [edi - 8], 0
mov eax, dword [esi + 0x170]
mov eax, dword [eax + 0x130]
jl 0x10042fb3
push eax
push edi
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10042fb3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10042fb3
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov ecx, ebx
mov byte [esp + 0x6c0], 3
call fcn.10046ee0
test al, al
jne 0x10042f8a
push ebx
push 0x148
mov ecx, esi
call fcn.10048860
lea esi, [esp + 0x10]
call fcn.10015b40
lea esi, [esp + 0x18]
call fcn.10015b40
lea esi, [esp + 0x14]
call fcn.10015b40
jmp 0x10043001
mov eax, dword [esp + 0x10]
push esi
call fcn.100472a0
test al, al
je 0x10042fa0
push ebx
push 0x18c
jmp 0x10042f66
push esi
mov ecx, ebx
call fcn.10046600
test al, al
je 0x10042f60
call fcn.10046bc0
jmp 0x10042f6d
push ebx
push 0x208
mov ecx, esi
call fcn.10048860
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [edi - 0xc]
cmp edx, 0x1006eb34
je 0x10042fe4
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x10042fe4
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, 0x1006eb34
je 0x10043001
add ebx, 0xfffffff4
push ebx
call esi
test eax, eax
jg 0x10043001
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x6c0], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1004301a
push eax
call fcn.10056a6f
mov ecx, dword [esp + 0x6b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6a0]
xor ecx, esp
call fcn.10056d50
mov esp, ebp
pop ebp
ret 4