Function at 0x402380
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x469ed3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xac]
lea ecx, [ebp + 0xac]
xor ebx, ebx
mov edx, dword [eax - 8]
mov dword [esp + 0x414], ebx
cmp edx, ebx
je 0x4023e1
cmp dword [ebp + 0xa8], ebx
jle 0x4023e1
lea ecx, [esp + 0x41c]
mov dword [esp + 0x414], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4025de
push esi
lea edx, [esp + 0x420]
push edi
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x214]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x424]
push ebx
push eax
push str._s_d.tga
lea ecx, [esp + 0x20]
push 0x1ff
push ecx
mov dword [ebp + 0xa8], ebx
call esi
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x214]
push edx
push str.setpath_filename_:_s
push 0x1ff
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x214]
lea edx, [esp + 0x10]
push ecx
push 0x4800dc
push edx
mov byte [esp + 0x428], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x41c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push 0x480564
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x4025ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xa8]
mov edx, dword [esp + 0x424]
inc edi
mov ecx, 0x80
mov dword [ebp + 0xa8], edi
xor eax, eax
lea edi, [esp + 0x14]
inc ebx
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x214]
push ebx
push edx
rep stosd dword es:[edi], eax
push str._s_d.tga
lea eax, [esp + 0x20]
push 0x1ff
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x214]
push ecx
push str.setpath_filename_:_s
push 0x1ff
push edx
call esi
add esp, 0x10
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x214]
lea ecx, [esp + 0x10]
push eax
push 0x4800dc
push ecx
mov byte [esp + 0x428], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x41c], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x480564
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
jne 0x4024e2
mov eax, dword [ebp + 0xa8]
pop edi
test eax, eax
pop esi
mov dword [esp + 0x414], 0xffffffff
lea ecx, [esp + 0x41c]
jne 0x4025d4
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4025de
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x40c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x410
ret 4