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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eaf1c
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x1bc]
mov eax, dword [ecx]
mov esi, edx
call dword [eax + 4]
test al, al
jne 0x42e519
and dword [esi], 0
jmp 0x42e982
lea ebx, [edi + 0x24]
mov dword [esi], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.0040349e
xor esi, esi
mov dword [esp + 0x128], esi
lea eax, [esp + 0x28]
push eax
push dword [edi + 4]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
inc dword [esp + 0x28]
inc dword [esp + 0x2c]
dec dword [esp + 0x30]
mov ecx, dword [esp + 0xcc]
dec dword [esp + 0x34]
lea eax, [esp + 0x68]
push eax
lea edx, [esp + 0x2c]
call fcn.004033dd
mov byte [esp + 0x128], 1
push esi
lea eax, [esp + 0x40]
push eax
mov eax, edi
call fcn.0042e39d
mov ecx, dword [esp + 0x3c]
mov eax, ecx
shr eax, 8
movzx edx, cl
movzx eax, al
shl edx, 8
or eax, edx
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
or eax, ecx
push eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x2c]
push eax
lea esi, [esp + 0x70]
call fcn.0040a293
push 0x26200a
push 6
push 7
lea eax, [esp + 0x94]
push eax
call fcn.0040323b
mov byte [esp + 0x128], 2
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x38], 0xff000000
call dword [eax + 0x74]
lea ecx, [esp + 0x38]
push ecx
call fcn.00405821
and dword [esp + 0x18], 0
mov dword [esp + 0x4c], 1
mov dword [esp + 0x24], 5
mov byte [esp + 0x13], 0
and dword [esp + 0x20], 0
cmp byte [esp + 0x13], 0
lea eax, [esp + 0x3c]
jne 0x42e62f
lea eax, [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x20], eax
jl 0x42e660
mov ecx, dword [esp + 0x24]
add ecx, eax
cmp dword [esp + 0x20], ecx
jge 0x42e660
cmp byte [esp + 0x13], 0
lea eax, [esp + 0x38]
jne 0x42e65a
lea eax, [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
push dword [esp + 0x18]
lea eax, [esp + 0x18]
push dword [esp + 0x24]
lea esi, [esp + 0x90]
call fcn.0042f9e3
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 7
jl 0x42e620
sub dword [esp + 0x24], 2
inc dword [esp + 0x4c]
cmp dword [esp + 0x24], 0
jge 0x42e6a8
mov dword [esp + 0x4c], 1
mov dword [esp + 0x24], 5
mov byte [esp + 0x13], 1
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 6
jl 0x42e61b
push dword [esp + 0x68]
lea esi, [esp + 0x50]
call fcn.0040334c
mov byte [esp + 0x128], 3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x38]
mov ecx, eax
and cl, 0x40
cmp cl, 0x40
sete byte [esp + 0x13]
and al, 0x20
cmp al, 0x20
sete byte [esp + 0x1f]
cmp byte [edi + 0x280], 0
mov dword [esp + 0x98], 0x34
mov dword [esp + 0x18], 0x13
jne 0x42e779
lea eax, [esp + 0x98]
push eax
xor esi, esi
push esi
push 0x164
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x42e779
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0xc8]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x54]
push eax
push dword [edi + 4]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x44]
sub eax, dword [esp + 0x54]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x18]
lea eax, [esi - 7]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push ecx
push ecx
fmul qword [0x51dde8]
fstp qword [esp + 0x44]
fld qword [esp + 0x44]
fstp qword [esp]
call fcn.004c8990
mov eax, dword [esp + 0x38]
sub eax, esi
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
pop ecx
pop ecx
faddp st(1)
call fcn.004e51b0
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x42e7c7
cmp byte [esp + 0x1f], 0
je 0x42e7de
fld qword [esp + 0x3c]
push ecx
push ecx
fstp qword [esp]
call fcn.004c8990
pop ecx
pop ecx
call fcn.004e51b0
mov esi, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push ecx
add eax, 0xfffffffa
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
push ecx
fmul qword [0x51dde8]
fstp qword [esp]
call fcn.004c8990
pop ecx
pop ecx
call fcn.004e51b0
push 6
push 7
push eax
push esi
lea eax, [esp + 0x98]
lea esi, [esp + 0x5c]
call fcn.00403313
cmp byte [edi + 0x280], 0
je 0x42e935
push 0
push 0
push 0x147
add edi, 0x188
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040372d
mov byte [esp + 0x128], 4
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0042f67e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
push dword [eax]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x6c]
call ebx
push 1
push dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esp + 0x64]
push dword [esp + 0x6c]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x38]
mov eax, ecx
shr eax, 8
movzx edx, cl
movzx eax, al
shl edx, 8
shr ecx, 0x10
or eax, edx
movzx ecx, cl
shl eax, 8
or eax, ecx
push eax
push dword [esp + 0x6c]
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x28]
lea edi, [esp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x42e8e6
mov ecx, dword [esp + 0x18]
add eax, ecx
sub dword [esp + 0x5c], 2
mov dword [esp + 0x54], eax
jmp 0x42e8f5
add eax, 2
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x5c], eax
movzx ecx, byte [esp + 0x13]
mov eax, dword [esp + 0x3c]
mov esi, dword [eax - 0xc]
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
lea ecx, [esp + 0x58]
push ecx
push esi
push eax
push dword [esp + 0x78]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [esp + 0x14]
push dword [esp + 0x6c]
call ebx
mov byte [esp + 0x128], 3
lea ecx, [esp + 0x3c]
call fcn.004036cd
mov byte [esp + 0x128], 2
push dword [esp + 0x4c]
call sub.gdiplus.dll_GdipDeleteGraphics
mov byte [esp + 0x128], 1
lea eax, [esp + 0x88]
push eax
call fcn.0040317e
mov byte [esp + 0x128], 0
lea eax, [esp + 0x68]
push eax
call fcn.0040336e
or dword [esp + 0x128], 0xffffffff
lea eax, [esp + 0xcc]
push eax
call fcn.0040345f
xor eax, eax
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004c625d
mov esp, ebp
pop ebp
ret