Function at 0x4015b0
Capabilities:
Print debug messages
Set current directory

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [0x40e438]
push 0xffffffffffffffff
push 0x40a291
push eax
mov dword fs:[0], esp
mov eax, dword [edx + 0x160]
sub esp, 0x104
push ebp
mov ebp, 1
push esi
cmp eax, ebp
push edi
mov esi, ecx
je 0x4015f5
push str.MMF_Not_Open___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401800
mov eax, dword [edx + 0x68]
cmp byte [eax + 0xac], 1
je 0x401625
xor eax, eax
push 0x40d1f4
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x1448], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401800
mov eax, dword [esi + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp eax, 0xa
jle 0x401651
push str.sendRetryCenter
mov dword [esi + 0x3c], 0
mov dword [esi + 0x1448], 0
call edi
mov edx, dword [0x40e438]
mov eax, dword [esi + 0x1448]
cmp eax, 0x65
je 0x4017f2
cmp eax, 0x66
je 0x4017f2
cmp eax, 0x67
je 0x4017f2
cmp eax, 0x68
je 0x4017f2
cmp eax, 0x6c
je 0x4017f2
mov eax, dword [esi + 0x4218]
mov ecx, dword [esi + 0x4214]
cmp eax, ecx
jge 0x4016c8
cmp dword [edx + 0x8c], ebp
jne 0x4016c8
inc eax
push ecx
push eax
lea ecx, [esp + 0x98]
push 0x40d1a0
push ecx
mov dword [esi + 0x4218], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x90]
push edx
jmp 0x4017fe
lea ecx, [esp + 0x14]
mov dword [esi + 0x4218], ebp
call fcn.00409dd6
lea ecx, [esp + 0xc]
mov dword [esp + 0x118], 0
call fcn.00409dd0
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
push str.d:_enforce_img_
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x54]
push 0x40d0d0
push eax
mov byte [esp + 0x124], 1
call edi
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [0x40e438]
lea ecx, [esp + 0x30]
mov eax, dword [edx + 0x68]
push eax
push str.._s
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x14]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4017cb
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x11c], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x118], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push 0x40d0c4
push ecx
call ebp
add esp, 8
test eax, eax
je 0x4017ba
mov edx, dword [esp + 0xc]
push 0x40d0c0
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4017c0
test edi, edi
je 0x4017cb
jmp 0x401758
push 0
push 0x65
mov ecx, esi
call fcn.00403ca0
lea ecx, [esp + 0xc]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
jmp 0x401800
mov ecx, dword [esi + 0x3c]
push 0x40d180
inc ecx
mov dword [esi + 0x3c], ecx
call edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x110
ret