Function at 0x40f5f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43d063
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [esp + 0x234]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0xae
mov dword [esp + 0x2c], ebp
call fcn.00435cb0
xor esi, esi
lea ecx, [ebp + 0x308]
mov dword [esp + 0x23c], esi
call fcn.00419bd0
mov dword [ebp + 0x3d0], esi
mov dword [ebp + 0x3d4], esi
mov dword [ebp + 0x3d8], esi
lea ebx, [ebp + 0x3dc]
mov dword [esp + 0x28], ebx
mov dword [ebx], esi
lea eax, [ebx + 4]
mov dword [esp + 0x20], eax
mov dword [eax], esi
lea eax, [ebx + 8]
mov dword [esp + 0x1c], eax
mov dword [eax], esi
lea eax, [ebx + 0xc]
mov dword [esp + 0x18], eax
mov dword [eax], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 6
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x23c], 7
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 4]
push 0x104
push 0x104
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x6c]
push eax
push ecx
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 + 0x131]
mov byte [esp + 0x130], 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 + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x130]
push 0x103
push edx
push eax
call fcn.00403a40
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2e
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 + 0x3c]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
xor edi, edi
add esp, 0x14
cmp eax, edi
je 0x40f760
mov byte [eax], 0
lea edx, [esp + 0x2c]
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 0x40f810
lea ecx, [esp + 0x130]
push str.4.1.0.1001
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jge 0x40f7a2
cmp esi, 4
jle 0x40f810
mov edx, dword [esp + 0x10]
push ebx
push 0x4460a8
push edi
push edi
push 0x446108
push edx
call fcn.00418db0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push eax
push 0x4460b8
push edi
push edi
push 0x446118
push ecx
call fcn.00418db0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
push edx
push 0x4460c8
push edi
push edi
push 0x446128
push eax
call fcn.00418db0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
add esp, 0x48
push ecx
push 0x4460e8
push edi
push edi
push 0x446148
push edx
call fcn.00418db0
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 6
call sub.MFC42.DLL_CString::CString
lea esi, [ebp + 0x3f0]
mov dword [esi + 4], edi
mov dword [esi], 0x442d98
lea ecx, [ebp + 0x3f8]
mov byte [esp + 0x23c], 9
call fcn.004010c0
lea ecx, [ebp + 0x4d0]
mov byte [esp + 0x23c], 0xa
call fcn.004010c0
lea ecx, [ebp + 0x5a8]
mov byte [esp + 0x23c], 0xb
call fcn.00414710
mov al, byte [esp + 0x17]
mov dword [ebp + 0x668], edi
mov byte [ebp + 0x664], al
mov dword [ebp + 0x66c], edi
mov dword [ebp + 0x670], edi
push 0xf3efe3
mov byte [esp + 0x240], 0xd
mov dword [ebp], 0x444860
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x234]
mov dword [ebp + 0x3cc], edi
mov dword [ebp + 0x674], edi
mov dword [ebp + 0x304], edi
mov dword [ebp + 0x300], edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 4