Function at 0x402fd0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x405438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x4082c8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [eax + 0x74]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x18], eax
mov cx, word [ecx + 8]
mov word [esp + 0x1c], cx
call edi
mov dword [esi + 0x170], eax
xor eax, eax
mov dword [esp + 0x14], eax
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x74]
lea eax, [esp + 0x10]
push eax
mov dx, word [ecx + 0xb]
mov word [esp + 0x14], dx
call edi
xor ecx, ecx
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esi + 0x188], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x74]
add edx, 0xe
mov eax, dword [edx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov ecx, dword [edx + 4]
push eax
mov dword [esp + 0x18], ecx
mov dx, word [edx + 8]
mov word [esp + 0x1c], dx
call edi
xor ecx, ecx
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [esi + 0x174], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [eax + 0x74]
mov ax, word [edx + 0x19]
mov word [esp + 0x14], ax
call edi
add esp, 4
mov dword [esi + 0x18c], eax
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x74]
add eax, 0x1c
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x18], edx
mov ax, word [eax + 8]
mov word [esp + 0x1c], ax
call edi
xor edx, edx
add esp, 4
mov dword [esp + 0x10], edx
mov dword [esi + 0x178], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
push edx
mov eax, dword [eax + 0x74]
mov cx, word [eax + 0x27]
mov word [esp + 0x14], cx
call edi
add esp, 4
mov dword [esi + 0x190], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ebx, [esi + 0x168]
mov ecx, ebx
mov eax, dword [eax + 0x74]
add eax, 0x2a
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebx]
mov cl, byte [eax]
cmp cl, 0x30
jl 0x40326a
cmp cl, 0x39
jg 0x40326a
mov cl, byte [eax + 9]
cmp cl, 0x30
jl 0x40326a
cmp cl, 0x39
jg 0x40326a
cmp byte [eax + 0xa], 0x7c
jne 0x40326a
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x74]
add edx, 0x2a
mov eax, dword [edx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov ecx, dword [edx + 4]
push eax
mov dword [esp + 0x18], ecx
mov dx, word [edx + 8]
mov word [esp + 0x1c], dx
call edi
mov ecx, dword [ebx]
mov dword [esi + 0x17c], eax
add esp, 4
lea edx, [esp + 0xc]
mov eax, dword [ecx - 8]
mov ecx, ebx
add eax, 0xfffffff5
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, ebx
mov dword [esp + 0x30], 0
call fcn.00404c18
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00404a98
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x17c], 0xffffffff
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret