Function at 0x40e0f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x546fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x94], eax
push ebp
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
cmp dword [0x5c29bc], 0
mov eax, dword [esp + 0xc4]
mov esi, ecx
mov dword [esp + 0x1c], eax
jne 0x40e1c8
lea ecx, [esp + 0x54]
call fcn.004e9d36
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0xc4], 0
call dword [sym.imp.GDI32.dll_CreateICW]
push eax
lea ecx, [esp + 0x58]
call fcn.004ea204
mov ecx, dword [esp + 0x5c]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push ecx
call ebp
mov edx, dword [esp + 0x5c]
push 0x5a
push edx
mov edi, eax
call ebp
cmp edi, 0x60
jne 0x40e1a0
cmp eax, edi
mov dword [0x5c29b8], 1
je 0x40e1aa
mov dword [0x5c29b8], 0
lea ecx, [esp + 0x54]
mov dword [0x5c29bc], 1
mov dword [esp + 0xb4], 0xffffffff
call fcn.004ea27e
cmp dword [0x5c29b8], 0
je 0x40e1d8
xor eax, eax
jmp 0x40e4ff
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
movzx edx, ax
push 5
push edx
push esi
mov dword [ebx + 4], esi
mov dword [ebx], eax
mov dword [ebx + 8], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [esp + 0x30]
mov ebp, eax
call fcn.0040dfe0
mov eax, dword [esp + 0x30]
test eax, eax
jl 0x40e224
cmp eax, 0x7fff
jle 0x40e22f
neg eax
and eax, 0xffff
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
fmul qword [esp + 0xc8]
push eax
push 0
push 0
fdiv qword [0x587a88]
push 0
push 0
push 1
push 0
push 0
push ecx
push edx
push 0
push 0
push 0
lea esi, [ebx + 0xc]
fadd qword [0x587a40]
call fcn.005198f0
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov dword [esi], eax
mov eax, dword [ebx + 8]
push 0x31
push eax
call edi
mov ecx, dword [esi]
mov edx, dword [ebx + 8]
push 1
push ecx
push 0x30
push edx
mov dword [ebx + 0x10], eax
call edi
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x10], eax
mov eax, esi
lea edi, [esp + 0x14]
lea esi, [esp + 0x10]
call fcn.0040df70
mov eax, dword [ebx + 8]
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
fild dword [esp + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x20]
fstp qword [esp + 0x44]
push ecx
fild dword [esp + 0x1c]
push edx
fstp qword [esp + 0x54]
call dword [sym.imp.USER32.dll_GetClientRect]
movsx eax, word [ebp + 0x16]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [esp + 0x44]
fmul qword [0x587a80]
fld qword [0x587a40]
fadd st(1), st(0)
fxch st(1)
call fcn.005198f0
add eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
movsx ecx, word [ebp + 0x18]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul qword [esp + 0x4c]
fmul qword [0x587a78]
faddp st(1)
call fcn.005198f0
add eax, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
push edx
push eax
call esi
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x28]
push ecx
push edx
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
mov eax, dword [ebx + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, ebp
call fcn.0040de80
mov edi, eax
xor esi, esi
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.0040de70
cmp word [eax], si
jbe 0x40e4b9
mov esi, dword [esp + 0x1c]
jmp 0x40e3c0
cmp dword [esp + 0x10], 0
jne 0x40e3cf
mov ecx, dword [ebx + 8]
push 5
push ecx
jmp 0x40e3d2
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x40e4b7
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [edi + 0x14]
je 0x40e402
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x40e3e2
jmp 0x40e4b7
test esi, esi
je 0x40e4b7
movsx edx, word [edi + 0x12]
mov dword [esp + 0x14], edx
push 1
fild dword [esp + 0x18]
fld qword [esp + 0x50]
fmul st(1), st(0)
fld qword [0x587a78]
fmul st(2), st(0)
fld qword [0x587a40]
fadd st(3), st(0)
fxch st(3)
call fcn.005198f0
push eax
movsx eax, word [edi + 0x10]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fld qword [esp + 0x4c]
fmul st(1), st(0)
fld qword [0x587a80]
fmul st(2), st(0)
fxch st(2)
fadd st(5)
call fcn.005198f0
movsx ecx, word [edi + 0xe]
mov dword [esp + 0x1c], ecx
push eax
fild dword [esp + 0x20]
fmulp st(4)
fxch st(3)
fmulp st(2)
fxch st(1)
fadd st(3)
call fcn.005198f0
movsx edx, word [edi + 0xc]
mov dword [esp + 0x20], edx
push eax
fild dword [esp + 0x24]
fmulp st(2)
fmulp st(1)
faddp st(1)
call fcn.005198f0
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, edi
call fcn.0040df10
add dword [esp + 0x10], 1
mov edi, eax
mov eax, ebp
call fcn.0040de70
movzx eax, word [eax]
cmp dword [esp + 0x10], eax
jl 0x40e3c0
xor esi, esi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 8]
push 1
push ecx
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x1c]
cmp edi, esi
je 0x40e4e7
mov ecx, edi
call fcn.004ea51e
mov eax, dword [ebx + 0xc]
push eax
mov ecx, edi
call fcn.004ea4cb
jmp 0x40e4f1
mov ecx, dword [ebx + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 8], esi
mov eax, 1
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0050fe87
add esp, 0xa8
ret 0x14