Function at 0x404390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43b590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea edi, [esi + esi + 2]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x78]
mov edi, ebx
mov dword [esp + 0x24], ebp
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
or ecx, 0xffffffff
mov edx, dword [eax + 0xc]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push eax
push eax
mov dword [esp + 0x5c], edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4045f4
mov esi, dword [esp + 0x68]
mov dword [esp + 0x6c], ebp
mov ebx, 2
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esp + 0x6c]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push edx
push eax
mov word [esp + 0x40], cx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x24]
push ecx
push ecx
push 5
push edx
lea eax, [esp + 0x3c]
push 1
push eax
push ecx
push ecx
mov byte [esp + 0x48], cl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x24]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x44]
cmp al, 0x30
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], ecx
jl 0x404610
cmp al, 0x39
jg 0x404610
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, dword [esp + 0x78]
mov ebx, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esp + 0x74]
mov ecx, esi
push eax
call dword [edx + 0x38]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x6c]
call fcn.0043a78c
mov eax, dword [esp + 0x68]
mov edx, dword [esi]
lea ebp, [esp + 0x48]
push 0x400
mov ecx, dword [eax - 8]
push ebp
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x70], 0
call dword [edx + 0x70]
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
call fcn.0043a78c
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
lea ebp, [esp + 0x48]
push 0x24
mov ecx, dword [eax - 8]
push ebp
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x70], 1
call dword [edx + 0x70]
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x38]
test edi, edi
je 0x404589
mov edi, dword [edi + 4]
test edi, edi
je 0x404589
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
sub ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x4045c1
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
add eax, ecx
mov dword [esp + 0x3c], eax
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x38]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
mov ebx, 2
inc edi
add ecx, ebx
push ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x70], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp edi, eax
jb 0x404443
push ebp
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x5c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
push edx
call fcn.0043a78c
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
lea edi, [esp + 0x48]
push 0x400
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x70], ebx
call dword [edx + 0x70]
or edi, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], edi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
call fcn.0043a78c
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
lea ebx, [esp + 0x48]
push 0x24
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x70], 3
call dword [edx + 0x70]
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], edi
call sub.MFC42.DLL_CString::CString
jmp 0x40458d