Function at 0x4333a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x440c4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x452204]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x14], ecx
jne 0x433629
call fcn.00403870
test eax, eax
jne 0x4333e8
call fcn.004038f0
test eax, eax
je 0x4336c0
push 0x10
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
cmp ebp, esi
mov dword [esp + 0x234], esi
je 0x4335c6
mov dword [ebp], esi
lea ebx, [ebp + 4]
mov dword [ebx], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x234], 5
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 4]
push 0x104
push 0x104
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str...LeakCheck.dll
push 0x104
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x128]
stosw word es:[edi], ax
push 0x103
push ecx
push edx
stosb byte es:[edi], al
call fcn.00403a40
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x14
test eax, eax
je 0x4334ff
mov byte [eax], 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4335b1
lea ecx, [esp + 0x128]
push str.4.1.0.1001
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jge 0x433541
cmp esi, 4
jle 0x4335b1
mov edx, dword [esp + 0x10]
push ebp
push 0x4460a8
push 0
push 0
push 0x446108
push edx
call fcn.00418db0
mov eax, dword [esp + 0x28]
push ebx
push 0x4460b8
push 0
push 0
push 0x446118
push eax
call fcn.00418db0
mov ecx, dword [esp + 0x40]
lea eax, [ebp + 8]
push eax
push 0x4460c8
push 0
push 0
push 0x446128
push ecx
call fcn.00418db0
mov edx, dword [esp + 0x58]
add esp, 0x48
lea eax, [ebp + 0xc]
push eax
push 0x4460e8
push 0
push 0
push 0x446148
push edx
call fcn.00418db0
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call sub.MFC42.DLL_CString::CString
xor esi, esi
jmp 0x4335c8
xor ebp, ebp
mov eax, dword [esp + 0x14]
mov dword [0x452204], ebp
push 0x452204
push 1
mov edx, dword [eax + 0x1168]
lea ecx, [eax + 0x1160]
push edx
mov dword [esp + 0x240], 0xffffffff
call fcn.00406f30
mov eax, dword [0x452204]
mov eax, dword [eax]
cmp eax, esi
je 0x433613
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x1c]
push eax
jmp 0x43361d
mov dword [esp + 0x1c], 4
push 4
call fcn.0043a1c0
mov ecx, eax
call fcn.0043a220
mov ebx, dword [esp + 0x240]
mov dword [esp + 0x18], esi
xor edi, edi
mov ecx, dword [0x452204]
mov eax, dword [ecx]
cmp eax, esi
je 0x4336c0
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
call dword [edx + 0x60]
xor edx, edx
test eax, eax
setge dl
mov eax, edx
cmp eax, esi
je 0x4336c0
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4336c0
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 4]
mov eax, dword [0x452204]
mov eax, dword [eax]
cmp eax, esi
je 0x433698
lea ebp, [esp + 0x14]
mov dword [esp + 0x14], esi
mov edx, dword [eax]
push ebp
lea ebp, [esp + 0x14]
push ebp
push ecx
push eax
call dword [edx + 0x58]
test eax, eax
jl 0x433694
cmp dword [esp + 0x14], esi
jne 0x4336ab
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x23c]
mov dword [esp + 0x18], esi
mov ecx, dword [eax]
inc ecx
inc edi
mov dword [eax], ecx
jmp 0x433636
cmp dword [esp + 0x10], esi
je 0x433698
mov eax, dword [ebx]
mov dword [esp + 0x18], esi
inc eax
inc edi
mov dword [ebx], eax
jmp 0x433636
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret 8