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

Disassembly:
push 0xffffffffffffffff
push 0x44b698
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov edi, ecx
fild dword [edi + 0x54]
fstp qword [esp + 0x24]
fild dword [edi + 0x70]
fstp qword [esp + 0x2c]
call fcn.0041232b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408088
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0
mov edx, dword [edi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
fld qword [esp + 0x24]
fdiv qword [esp + 0x2c]
mov eax, dword [edi + 0x98]
sub esp, 8
lea ecx, [esp + 0x20]
fmul qword [0x457508]
fstp qword [esp]
push eax
push str._s_.0f__
push ecx
call fcn.00401f90
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx - 0xc]
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x60]
sub eax, esi
sub eax, dword [esp + 0x58]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x20]
sar ecx, 1
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x38], ecx
cdq
sub eax, edx
lea edx, [esi + ecx]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x40], edx
sub edx, ecx
mov dword [esp + 0x8c], edx
mov edx, dword [edi + 0x80]
sub edx, dword [edi + 0x78]
sar eax, 1
add esi, eax
cmp dword [esp + 0x8c], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], esi
je 0x40817c
push 0x105
push 0
mov dword [edi + 0x7c], eax
mov eax, dword [edi + 0x20]
mov dword [edi + 0x78], ecx
mov ecx, dword [esp + 0x48]
push 0
mov edx, esi
push eax
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], edx
call dword [sym.imp.USER32.dll_RedrawWindow]
lea esi, [esp + 0x68]
call fcn.00407d50
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x38]
jle 0x408315
cmp eax, dword [esp + 0x40]
jl 0x4081d3
mov ecx, dword [edi + 0x5c]
push ecx
lea eax, [edi + 0x78]
push eax
mov ecx, ebp
call fcn.0041450f
mov eax, dword [edi + 0x5c]
mov cl, al
not cl
mov byte [esp + 0x16], cl
mov cl, ah
not cl
mov byte [esp + 0x8c], cl
mov ecx, eax
shr ecx, 0x10
not cl
xor edx, edx
mov dh, cl
movzx ecx, byte [esp + 0x16]
jmp 0x40834a
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], edx
mov edx, dword [edi + 0x78]
push ecx
mov ecx, ebp
mov dword [esp + 0x50], edx
call fcn.0041450f
mov edx, dword [esp + 0x70]
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x80]
mov dword [esp + 0x48], edx
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, ebp
mov dword [esp + 0x58], eax
call fcn.0041450f
mov eax, dword [edi + 0x58]
mov edx, dword [ebp]
mov cl, al
not cl
mov byte [esp + 0x17], cl
mov cl, ah
not cl
mov byte [esp + 0x16], cl
mov ecx, eax
shr ecx, 0x10
not cl
mov byte [esp + 0x8c], cl
push eax
mov eax, dword [edx + 0x2c]
mov ecx, ebp
call eax
movzx ecx, byte [esp + 0x17]
mov edx, dword [ebp]
mov edx, dword [edx + 0x30]
xor eax, eax
mov ah, byte [esp + 0x8c]
mov al, byte [esp + 0x16]
shl eax, 8
or eax, ecx
push eax
mov ecx, ebp
call edx
mov eax, dword [ebx - 0xc]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.GDI32.dll_ExtTextOutW]
push 0
push eax
push ebx
lea eax, [esp + 0x44]
push eax
mov eax, dword [ebp + 4]
push 4
push ecx
push edx
push eax
call esi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov cl, al
mov dl, ah
not dl
shr eax, 0x10
not cl
mov byte [esp + 0x8c], dl
not al
xor edx, edx
mov dh, al
movzx eax, cl
mov ecx, ebp
mov dl, byte [esp + 0x8c]
shl edx, 8
or eax, edx
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x30]
call eax
mov edx, dword [ebp]
mov eax, dword [edi + 0x5c]
mov edx, dword [edx + 0x2c]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebx - 0xc]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push 0
push eax
push ebx
lea eax, [esp + 0x54]
push eax
mov eax, dword [ebp + 4]
push 4
push ecx
push edx
push eax
call esi
jmp 0x408390
mov ecx, dword [edi + 0x58]
push ecx
lea eax, [edi + 0x78]
push eax
mov ecx, ebp
call fcn.0041450f
mov eax, dword [edi + 0x58]
mov cl, al
not cl
mov byte [esp + 0x17], cl
mov cl, ah
not cl
mov byte [esp + 0x8c], cl
mov ecx, eax
shr ecx, 0x10
not cl
xor edx, edx
mov dh, cl
movzx ecx, byte [esp + 0x17]
mov dl, byte [esp + 0x8c]
push eax
shl edx, 8
or edx, ecx
mov esi, edx
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x30]
push esi
mov ecx, ebp
call eax
mov eax, dword [ebx - 0xc]
mov edx, dword [esp + 0x3c]
push 0
push eax
mov eax, dword [esp + 0x40]
push ebx
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebp + 4]
push 4
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
lea eax, [ebx - 0x10]
mov dword [esp + 0x84], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4083b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4