Function at 0x40e380
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4768ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov eax, dword [0x4994a0]
xor eax, dword [esp + 0xf4]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0xf4], eax
mov dword [esp + 0x58], ebx
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
xor esi, esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x100], esi
call fcn.0046e0f4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], vtable.CFont.0
push 0x11
mov byte [esp + 0x104], 2
mov dword [esp + 0x40], esi
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [esp + 0x108]
mov ebp, dword [esi]
push eax
call fcn.0046e87f
push eax
mov ecx, esi
call dword [ebp + 0x28]
push 0
push 5
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x1c]
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x40e46d
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 1
mov dword [esp + 0x30], vtable.CGdiObject.0
call fcn.0046e8e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x100], 0
call fcn.0046e60e
lea eax, [edi - 0x10]
jmp 0x40ea07
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call fcn.0046e590
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, dword [ebx + 0x1c]
push 0xfffffffffffffff0
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [esp + 0x6c], eax
jmp 0x40e4a3
mov ebp, dword [esp + 0x14]
push 8
push ebp
mov ecx, ebx
call fcn.0046520a
mov edx, dword [ebx + 0x1c]
push ebp
push 3
push 0x110a
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebp
mov ecx, ebx
mov edi, eax
call fcn.00465270
test eax, eax
jne 0x40e4d9
test edi, edi
mov byte [esp + 0x11], al
jne 0x40e4de
mov byte [esp + 0x11], 1
test byte [esp + 0x40], 2
je 0x40e503
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004688eb
cmp ebx, eax
je 0x40e4fc
test byte [esp + 0x6c], 0x20
je 0x40e503
mov byte [esp + 0x12], 1
jmp 0x40e508
mov byte [esp + 0x12], 0
push ebp
mov ecx, ebx
call fcn.00465242
test eax, eax
mov dword [esp + 0x5c], eax
push 1
lea eax, [esp + 0x20]
push eax
push ebp
mov ecx, ebx
setg byte [esp + 0x1f]
call fcn.004651ea
test eax, eax
je 0x40e9b8
mov cl, byte [esp + 0x11]
test cl, cl
jne 0x40e546
mov al, byte [esp + 0x12]
test al, al
je 0x40e715
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], edx
mov edx, dword [ebx + 0xac]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0xa8]
add edx, eax
test cl, cl
mov dword [esp + 0x88], edx
jne 0x40e57b
mov edx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x80], eax
mov al, byte [esp + 0x13]
test al, al
je 0x40e5ef
mov eax, dword [esp + 0x2c]
and eax, 0x80000001
jns 0x40e59a
dec eax
or eax, 0xfffffffe
inc eax
jne 0x40e5ef
push 8
call fcn.0046b3c3
add esp, 4
mov dword [esp + 0x90], eax
test eax, eax
mov byte [esp + 0x100], 3
je 0x40e5c7
push 0xdcdcdc
mov ecx, eax
call fcn.0046ea75
jmp 0x40e5c9
xor eax, eax
test eax, eax
mov byte [esp + 0x100], 2
je 0x40e5d8
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x84]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov cl, byte [esp + 0x11]
test cl, cl
je 0x40e715
test byte [esp + 0x40], 0x20
lea edi, [ebx + 0x7c]
jne 0x40e604
lea edi, [ebx + 0x74]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x94]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x48]
push edi
push edx
call fcn.0046e916
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x98]
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
push 0x8800c6
push 0
push 0
push edx
mov edx, dword [esp + 0xac]
push edx
mov edx, dword [esi + 4]
mov edi, eax
mov eax, dword [esp + 0x30]
push ecx
sub eax, ecx
mov ecx, dword [esp + 0x38]
push ecx
sub eax, 2
push eax
push edx
call ebp
test edi, edi
je 0x40e668
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x48]
push edi
push eax
call fcn.0046e916
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00465322
test eax, eax
lea edi, [ebx + 0x8c]
jne 0x40e68f
lea edi, [ebx + 0x84]
mov eax, dword [edi + 4]
lea edx, [esp + 0x94]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x48]
push edi
push ecx
call fcn.0046e916
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x98]
push 0x8800c6
push 0
push 0
push edx
mov edx, dword [esp + 0xac]
push edx
mov edx, dword [esi + 4]
mov edi, eax
mov eax, dword [esp + 0x30]
push ecx
sub eax, ecx
mov ecx, dword [esp + 0x38]
push ecx
add eax, 0xe
push eax
push edx
call ebp
test edi, edi
je 0x40e6ed
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x48]
push edi
push eax
call fcn.0046e916
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov eax, 0x10
add edx, eax
add ecx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
push ebp
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
call fcn.004657c1
mov eax, dword [eax]
mov edi, dword [esp + 0x18]
lea ecx, [eax - 0x10]
add edi, 0xfffffff0
cmp ecx, edi
mov byte [esp + 0x100], 4
je 0x40e783
mov edx, dword [edi + 0xc]
test edx, edx
lea ebp, [edi + 0xc]
jge 0x40e754
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402770
jmp 0x40e77f
push ecx
call fcn.00402360
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [ebp], edx
dec edx
test edx, edx
jg 0x40e774
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x100], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e7a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x12]
inc edx
dec ecx
test al, al
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
je 0x40e828
mov al, byte [esp + 0x11]
test al, al
jne 0x40e7db
mov edi, dword [esi]
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [edi + 0x30]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov ebp, dword [esi]
push 0xd
mov edi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [ebp + 0x2c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi]
push 0
lea ebp, [esp + 0x20]
push ebp
push eax
push ecx
mov ecx, esi
call dword [edx + 0x68]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c]
mov ebp, dword [esp + 0x14]
jmp 0x40e84b
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi]
push 0
lea edi, [esp + 0x20]
push edi
push eax
push ecx
mov ecx, esi
call dword [edx + 0x68]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov al, byte [esp + 0x11]
test al, al
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x70], 0x14a
mov dword [esp + 0x78], 0x1ae
je 0x40e9b8
mov al, byte [esp + 0x13]
test al, al
je 0x40e9b8
mov edi, dword [esp + 0x2c]
mov eax, dword [esi]
inc edi
push 0xff
mov ecx, esi
mov dword [esp + 0x30], edi
call dword [eax + 0x30]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x40e8f7
mov edx, dword [eax + 4]
lea ecx, [esp + 0xb8]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xcc], 0x258
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x34]
call fcn.0046e88d
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x5c]
push 0xa
lea ecx, [esp + 0xb0]
push ecx
push edx
call fcn.0045b63c
add esp, 0xc
push eax
lea ecx, [esp + 0x6c]
call fcn.00405920
push str._Problems
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x10c], 5
call fcn.00405860
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push 2
lea edi, [esp + 0x74]
push edi
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x110], 6
call dword [edx + 0x68]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x100], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x100], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e99c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40e9ac
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [ebx + 0x1c]
push ebp
push 6
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40e49f
lea ecx, [esp + 0x30]
mov byte [esp + 0x100], 1
mov dword [esp + 0x30], vtable.CGdiObject.0
call fcn.0046e8e4
lea ecx, [esp + 0x44]
mov byte [esp + 0x100], 0
call fcn.0046e60e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x100], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xf8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf0]
xor ecx, dword [esp + 0x100]
pop esi
pop ebp
pop ebx
call fcn.00456aa7
add esp, 0xf4
ret 4