Function at 0x404090
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x409618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x40d08c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor edi, edi
cmp esi, edi
mov dword [esp + 0x28], esi
jne 0x4040d8
push 0x10
push 0x40d084
push 0x40d054
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
push 0x40d044
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, edi
jne 0x404104
push 0x10
push 0x40d084
push 0x40d028
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
push edi
call dword [sym.imp.MSVCRT.dll_exit]
push 0x280
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], esi
push eax
push esi
call ebp
test eax, eax
je 0x404173
push esi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x24]
mov eax, 0xcccccccd
mul esi
mov ecx, edx
mov eax, esi
xor edx, edx
mov esi, 0x280
div esi
add esp, 4
shr ecx, 9
test edx, edx
je 0x404150
inc ecx
lea ecx, [ecx + ecx*4]
shl ecx, 7
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x20]
mov dword [esp + 0x14], eax
push edx
push eax
call ebp
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x404127
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], esi
je 0x4042cf
mov eax, dword [esp + 0x1c]
add eax, 0x1ac
test eax, eax
mov dword [esp + 0x18], eax
je 0x4042bd
jmp 0x4041b1
mov eax, dword [esp + 0x18]
add eax, 4
mov esi, 0x40d020
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4041dd
test cl, cl
je 0x4041d9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4041dd
add eax, 2
add esi, 2
test cl, cl
jne 0x4041b9
xor eax, eax
jmp 0x4041e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4042a7
mov esi, dword [esp + 0x18]
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x14]
push 0x40d318
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x440]
add esp, 0xc
push ecx
push edi
push 0x14a
push edx
call ebp
add esi, 0x14
lea eax, [esp + 0x10]
push esi
push 0x40d318
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x100]
add esp, 0xc
push ecx
push edi
push 0x14a
push edx
call ebp
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
add eax, 0x1d8
push eax
push 0x40d318
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x80]
add esp, 0xc
push edx
push edi
push 0x14a
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push 0x40d4bc
lea esi, [ecx + 0x10c]
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4042a6
push 0x40d4b4
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x4042a6
mov dword [esp + 0x24], edi
inc edi
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4041ad
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x404196
mov edi, dword [esp + 0x24]
mov ecx, dword [ebx + 0x80]
push 0
push edi
push 0x14e
push ecx
call ebp
mov edx, dword [ebx + 0x440]
push 0
push edi
push 0x14e
push edx
call ebp
mov eax, dword [ebx + 0x100]
push 0
push edi
push 0x14e
push eax
call ebp
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret