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

Disassembly:
push 0xffffffffffffffff
push 0x4fc25f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x13c]
push edi
mov edi, ecx
mov ebx, dword [esi]
lea ecx, [esi + 0x28]
push ecx
mov ecx, ebx
mov eax, dword [ebx]
mov dword [esp + 0x50], ebx
call dword [eax + 0x28]
mov ecx, dword [esi]
push 1
mov dword [esp + 0x58], eax
call fcn.004df0c4
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x406f4000
call fcn.0040b6b0
test byte [eax + 0x1a8], 4
je 0x424ee8
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x40590000
call fcn.0040b6b0
fild dword [eax + 0x35c]
fdiv qword [esp + 0x10]
fstp qword [esp + 0x58]
call fcn.0040b6b0
fild dword [eax + 0x354]
fdiv qword [esp + 0x10]
fstp qword [esp + 0xa4]
call fcn.0040b6b0
fild dword [eax + 0x360]
fdiv qword [esp + 0x10]
fstp qword [esp + 0x60]
call fcn.0040b6b0
fild dword [eax + 0x358]
mov edx, dword [ebx + 8]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push edx
fdiv qword [esp + 0x18]
fstp qword [esp + 0x28]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
push 0x58
push eax
call ebp
mov ecx, dword [ebx + 8]
push 0x5a
push ecx
mov dword [esp + 0x30], eax
call ebp
mov edx, dword [ebx + 8]
push 0x58
push edx
mov dword [esp + 0x24], eax
call ebp
fild dword [esp + 0x10]
mov ebx, dword [esp + 0x13c]
mov dword [esp + 0x18], eax
fmul qword [esp + 0x20]
lea ebp, [ebx + 0x24]
call fcn.004bfa88
fild dword [esp + 0x28]
push eax
fmul qword [esp + 0x64]
call fcn.004bfa88
fild dword [esp + 0x20]
push eax
fmul qword [esp + 0xac]
call fcn.004bfa88
fild dword [esp + 0x20]
push eax
fmul qword [esp + 0x64]
call fcn.004bfa88
push eax
mov ecx, ebp
call fcn.004ed67a
mov eax, dword [ebx + 0x14]
mov ecx, dword [esi + 0x5c]
lea edx, [eax - 1]
cmp edx, ecx
jl 0x424fd8
push esi
push ebx
push eax
mov ecx, edi
call fcn.00424db0
test eax, eax
je 0x4254bd
mov eax, dword [ebx + 0x14]
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + eax*4 - 4]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
lea edx, [esp + 0xf0]
mov ecx, dword [eax + 8]
push edx
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [esp + 0xf0]
mov eax, dword [esp + 0x100]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x104]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x40], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
sub eax, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
mov ebp, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, edx
add ecx, ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], ecx
lea edx, [eax - 0xa]
add eax, 0xa
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 0x48], edx
mov edx, dword [ebx + 0x2c]
push ecx
push ebx
push esi
mov ecx, edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
call fcn.00425550
lea ecx, [esp + 0xac]
call fcn.00450420
xor ebp, ebp
lea ecx, [esp + 0x68]
mov dword [esp + 0x134], ebp
call fcn.00450420
mov byte [esp + 0x134], 1
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x94]
test eax, eax
jle 0x4250c9
cmp dword [esp + 0x20], eax
jge 0x425395
jmp 0x4250de
mov ecx, dword [edi + 0xd8]
call fcn.0046e6e0
cmp dword [esp + 0x20], eax
jge 0x425395
mov eax, dword [esi + 0x94]
mov ebp, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x425207
mov ecx, dword [esi + 0x9c]
mov ebx, ebp
mov eax, ebx
cdq
idiv ecx
mov ebp, eax
mov eax, ebx
cdq
idiv ecx
mov eax, ebp
mov ebp, dword [esi + 0xa4]
mov ecx, dword [ebp + eax*4]
mov eax, dword [esp + 0x28]
test eax, eax
mov ebp, dword [ecx + edx*4]
jl 0x42512d
inc eax
cmp ebp, eax
mov eax, 1
jg 0x425131
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x28], ebp
je 0x425200
test byte [esi + 0x38], 1
jne 0x4251d4
mov eax, dword [esi + 0x34]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esi + 0x40]
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
add eax, ebx
sub edx, ecx
mov ecx, dword [esi]
push eax
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.004df4d9
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x40]
cdq
mov ebx, dword [esp + 0x44]
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esi + 0x40]
add ecx, ebx
push eax
push ecx
mov ecx, dword [esi]
call fcn.004df525
mov eax, dword [esi + 0x34]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esi + 0x40]
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, ebx
sub edx, ecx
mov ecx, dword [esi]
push eax
lea eax, [esp + 0xec]
push edx
push eax
call fcn.004df4d9
mov eax, dword [esi + 0x34]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esi + 0x40]
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
add eax, ebp
add ecx, edx
push eax
push ecx
mov ecx, dword [esi]
call fcn.004df525
mov edx, dword [esi + 0x34]
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
push edx
lea eax, [esp + 0x40]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x34]
lea edx, [esp + 0x2c]
push ecx
push 0
push edx
call ebx
mov ebx, dword [esp + 0x13c]
jmp 0x4250b3
mov ebx, dword [esp + 0x13c]
mov ecx, dword [edi + 0xd8]
push ebp
call fcn.0046e840
mov ecx, dword [edi + 0xdc]
push ebp
mov dword [esp + 0x14], eax
call fcn.0046e840
mov dword [esp + 0x18], eax
mov al, byte [esi + 0x38]
test al, 1
jne 0x425263
xor eax, eax
mov ecx, edi
push eax
push ebp
mov dword [esp + 0xa4], eax
mov dword [esp + 0xe8], eax
call fcn.00423a20
test eax, eax
je 0x425263
lea eax, [esp + 0x98]
lea ecx, [esp + 0xdc]
push eax
push ecx
push ebp
mov ecx, edi
call fcn.00428c70
mov edx, dword [edi + 0xd8]
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x44]
push ebx
push ecx
push edx
mov ecx, edi
mov dword [esp + 0xd4], ebp
call fcn.00424ca0
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xdc]
lea ecx, [esp + 0x68]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x34]
push ebx
push edx
push eax
mov ecx, edi
mov dword [esp + 0x90], ebp
call fcn.00424ca0
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], ebp
jle 0x4252e1
mov ecx, dword [esp + 0x10]
test ecx, ecx
jl 0x4253b8
test ebp, ebp
jl 0x4253b8
xor ecx, ecx
cmp eax, ecx
jne 0x425313
mov eax, dword [ebx + 0x14]
mov ecx, dword [esi + 0x6c]
shl eax, 1
xor edx, edx
mov dx, word [ecx + eax - 2]
mov ecx, dword [esi + 0x80]
mov dword [esp + 0xc4], edx
xor edx, edx
mov dx, word [ecx + eax - 2]
mov dword [esp + 0x80], edx
jmp 0x425321
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x80], ecx
push esi
lea eax, [esp + 0x40]
push ebx
lea ecx, [esp + 0xb4]
push eax
push ecx
mov ecx, edi
call fcn.00426ab0
push esi
lea edx, [esp + 0x30]
push ebx
lea eax, [esp + 0x70]
push edx
push eax
mov ecx, edi
call fcn.00426ab0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x42539e
test ebp, ebp
jl 0x42539e
cmp ebp, eax
jge 0x425360
mov dword [esp + 0x18], eax
mov ebp, eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [esp + 0x40]
push 0
push ecx
call ebp
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push 0
push eax
call ebp
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc ecx
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jmp 0x4250b3
mov dword [ebx + 0x10], 0
jmp 0x4253b8
mov eax, dword [esp + 0xc4]
test eax, eax
jne 0x4253b8
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4253b8
inc dword [esp + 0x20]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4253ca
mov ecx, dword [esp + 0x4c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi]
push eax
call fcn.004df0c4
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebx + 0x14]
cmp ecx, eax
jne 0x42542a
mov ebx, dword [esi + 0x5c]
lea edi, [esi + 0x54]
push 0xffffffffffffffff
lea ecx, [ebx + 1]
push ecx
mov ecx, edi
call fcn.00490de0
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x68]
mov dword [edx + ebx*4], eax
mov edx, dword [esp + 0xc4]
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.004d682c
mov ecx, dword [esp + 0x80]
mov eax, dword [esi + 0x84]
add esi, 0x7c
push ecx
push eax
mov ecx, esi
call fcn.004d682c
lea ecx, [esp + 0x98]
mov byte [esp + 0x134], 3
call fcn.0044f420
mov eax, dword [esp + 0x88]
mov esi, 0x510acc
test eax, eax
mov dword [esp + 0x84], esi
je 0x42545e
push eax
call fcn.004dbc23
add esp, 4
lea ecx, [esp + 0x6c]
mov byte [esp + 0x134], 0
call fcn.004dbec1
lea ecx, [esp + 0xdc]
mov dword [esp + 0x134], 5
call fcn.0044f420
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xc8], esi
test eax, eax
je 0x4254a1
push eax
call fcn.004dbc23
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x134], 0xffffffff
call fcn.004dbec1
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8