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

Disassembly:
sub esp, 0xa0
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov ebx, edx
push edi
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], ebx
je 0x40ed84
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
test eax, eax
je 0x40ed84
cmp dword [esi + 4], 0
je 0x40e62b
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
mov ebp, eax
jmp 0x40e62d
xor ebp, ebp
cmp dword [esi + 0x328], 0
jne 0x40e644
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
call edx
test al, al
je 0x40e648
push 0
jmp 0x40e681
mov edx, dword [0x9f48bc]
mov esi, dword [edx + 0x2c]
cmp dword [esi], 0
jne 0x40e69e
cmp byte [edx + 6], 0
je 0x40e67b
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 8
call esi
test eax, eax
jne 0x40e675
push 5
call esi
cmp eax, 0xffffff
je 0x40e67b
push 0xf
call esi
jmp 0x40e680
mov eax, 0x999999
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x40e9e9
mov eax, esi
cmp dword [eax], 1
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
mov dword [esp + 0x40], ecx
jne 0x40e6b4
mov ebx, ecx
mov edi, ecx
jmp 0x40e718
cmp dword [esi], 2
jne 0x40e70f
mov edx, dword [esi + 0xc]
mov ebx, dword [edx + 4]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov eax, ebx
shr eax, 0x10
movzx eax, al
add eax, edx
cdq
sub eax, edx
sar eax, 1
movzx edi, al
mov edx, ecx
shr edx, 8
mov eax, ebx
shr eax, 8
movzx eax, al
movzx edx, dl
add eax, edx
cdq
sub eax, edx
sar eax, 1
movzx eax, al
shl edi, 8
or edi, eax
movzx eax, cl
movzx ecx, bl
add eax, ecx
cdq
sub eax, edx
sar eax, 1
movzx edx, al
shl edi, 8
or edi, edx
jmp 0x40e718
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x44]
fstp dword [esp + 0x10]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
mov eax, dword [ebp + 0x40]
fld dword [esp + 0x10]
mov dword [esp + 0x2c], eax
fld st(0)
mov eax, dword [ebp + 0x4c]
fdivp st(2)
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x44]
add eax, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x40]
mov eax, dword [ebp]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x28]
mov ecx, ebp
fxch st(1)
fstp dword [esp + 0x14]
fidivr dword [esp + 0x10]
fstp dword [esp + 0x18]
call edx
cmp eax, 4
je 0x40e810
cmp eax, 5
je 0x40e810
cmp eax, 6
je 0x40e810
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
dec eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp qword [esp + 0x50]
call edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
fdivr qword [esp + 0x50]
fstp dword [esp + 0x14]
call edx
dec eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp qword [esp + 0x50]
call edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdivr qword [esp + 0x50]
fstp dword [esp + 0x18]
mov eax, dword [ebp + 0x40]
fld dword [0x9ad7c0]
mov esi, dword [ebp + 0x4c]
fld dword [esp + 0x14]
mov ecx, dword [ebp + 0x44]
fcom st(1)
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], eax
xor eax, eax
xor edx, edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
fnstsw ax
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x48]
fstp st(1)
mov dword [esp + 0x5c], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 3
push ecx
lea esi, [esp + 0x6c]
test ah, 5
jp 0x40e8db
mov edx, dword [esp + 0x44]
fadd st(0), st(0)
mov ecx, edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x40e8ef
fsub qword [0x9ad788]
mov ecx, ebx
mov edx, edi
fadd st(0), st(0)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0040e4e0
fld dword [0x9ad7c0]
add esp, 4
fld dword [esp + 0x18]
push ecx
fcom st(1)
lea esi, [esp + 0x9c]
fnstsw ax
fstp st(1)
test ah, 5
jp 0x40e929
mov edx, dword [esp + 0x44]
fadd st(0), st(0)
mov ecx, edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x40e93d
fsub qword [0x9ad788]
mov ecx, ebx
mov edx, edi
fadd st(0), st(0)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0040e4e0
fld dword [0x9ad7c0]
add esp, 4
fcom dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40e9bb
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40e9bd
fldz
push ecx
lea esi, [esp + 0x7c]
fstp dword [esp]
mov ecx, edi
mov edx, edi
mov bl, 1
call fcn.0040e4e0
fldz
lea esi, [esp + 0x8c]
fstp dword [esp]
mov ecx, edi
mov edx, edi
call fcn.0040e4e0
fld dword [esp + 0x18]
fld st(0)
add esp, 4
fsubr qword [0x9ad788]
fld dword [esp + 0x18]
fsubrp st(2)
fdivrp st(1)
fimul dword [esp + 0x5c]
call fcn.0065d070
mov dword [esp + 0x8c], eax
mov dword [esp + 0x7c], eax
jmp 0x40e9c7
fstp st(0)
xor bl, bl
mov dword [esp + 0x30], 3
xor edx, edx
test bl, bl
setne dl
push 1
lea eax, [esp + 0x30]
lea ecx, [esp + 0x6c]
inc edx
push edx
mov edx, dword [esp + 0x2c]
push eax
push 4
push ecx
push edx
call dword [sym.imp.MSIMG32.dll_GradientFill]
mov eax, dword [ebp + 0x40]
mov edx, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x34], edx
mov edx, dword [ebp]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xc]
mov esi, 1
mov ecx, ebp
mov byte [esp + 0x23], 0
mov dword [esp + 0x14], esi
call eax
cmp eax, esi
jl 0x40ed46
mov ebx, 0x68
mov dword [esp + 0x10], ebx
mov edx, dword [ebp]
mov eax, dword [edx + 0x64]
push esi
mov ecx, ebp
call eax
test al, al
je 0x40ed20
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x40ed20
lea ebx, [ebx + eax - 0x68]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x40ed20
fld dword [ebx + 0x54]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40ed20
cmp byte [ebx + 0x40], 0
je 0x40ed20
mov edx, dword [esp + 0x38]
xor ecx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x50]
lea ecx, [ebx + 0x58]
call fcn.00412340
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
call edx
test al, al
jne 0x40eab9
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x40]
call fcn.0040e130
push esi
mov esi, ebp
mov byte [esp + 0x26], 0
call fcn.00445100
test al, al
jne 0x40eb20
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x78]
mov esi, dword [eax]
push 0
push 0
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push ecx
mov edi, ebp
call fcn.00442480
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 0x5c]
push ecx
mov ecx, dword [ebx + 0x58]
fstp dword [esp]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 0x60]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esi + 0x1c]
push eax
call edx
jmp 0x40ed20
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x24]
push eax
push ebp
push ebx
push 0x9f56e8
lea edx, [esp + 0x42]
call fcn.00430ac0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40ec1b
push 0xe
mov edi, 0x923f58
mov esi, ebx
call fcn.004523b0
add esp, 4
mov esi, eax
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x9f5a78]
push ecx
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffe
je 0x40ebe3
cmp eax, 0x3e8
jae 0x40ebbc
mov edx, dword [esp + 0x3c]
push 0xfa
push edx
call fcn.00410450
mov byte [esp + 0x23], 1
jmp 0x40ec03
call fcn.004028e0
movzx eax, al
push eax
mov eax, str.Please_wait___rendering...
call fcn.0044a3e0
push eax
lea edi, [esp + 0x48]
call fcn.00451b60
add esp, 8
mov byte [esp + 0x23], 1
jmp 0x40ec03
call fcn.004028e0
movzx ecx, al
push ecx
mov eax, str.Couldnt_render_the_page
call fcn.0044a3e0
push eax
lea edi, [esp + 0x48]
call fcn.00451b60
add esp, 8
mov edx, dword [esp + 0x28]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x40ed20
cmp byte [esp + 0x22], 0
je 0x40ed20
mov eax, ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x40ed20
mov ecx, dword [0x9eef18]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x3c]
fld dword [edx + 0x138]
fmul qword [0x9ad978]
call fcn.0065d070
mov ecx, eax
lea eax, [ecx + ecx]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
cmp eax, esi
jl 0x40ec75
lea edx, [esp + 0x48]
mov edx, dword [edx]
mov dword [esp + 0x1c], eax
cmp eax, edi
mov dword [esp + 0x18], edx
lea eax, [esp + 0x1c]
jl 0x40ec8b
lea eax, [esp + 0x4c]
mov edi, dword [eax]
mov eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x60], edi
cmp ecx, edi
mov dword [esp + 0x64], 0
mov dword [esp + 0x50], eax
lea edi, [esp + 0x28]
jl 0x40ecc1
lea edi, [esp + 0x60]
lea edx, [esp + 0x28]
cmp ecx, dword [esp + 0x18]
jl 0x40eccf
lea edx, [esp + 0x18]
cmp dword [esp + 0x1c], 0
lea ecx, [esp + 0x64]
jl 0x40ecde
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x18], eax
lea eax, [esp + 0x18]
jl 0x40ecec
lea eax, [esp + 0x50]
mov edi, dword [edi]
mov edx, dword [edx]
mov ecx, dword [ecx]
sub esi, dword [eax]
add ecx, dword [esp + 0x44]
add esi, dword [esp + 0x40]
push 0xcc0020
push 0x10
push 0x10
push 0
push 0
push ebx
push edi
push edx
mov edx, dword [esp + 0x44]
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
inc esi
add ebx, 0x68
mov ecx, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
call edx
cmp esi, eax
jle 0x40ea2e
mov edi, dword [esp + 0x3c]
cmp byte [edi + 0x160], 0
mov esi, dword [esp + 0x24]
je 0x40ed60
push esi
call fcn.0042c100
add esp, 4
cmp byte [edi + 0x390], 0
je 0x40ed72
push esi
call fcn.00425150
add esp, 4
cmp byte [esp + 0x23], 0
jne 0x40ed84
push esi
mov eax, ebp
call fcn.0040e190
add esp, 4
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0xa0
ret