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

Disassembly:
push 0xffffffffffffffff
push 0x44bb06
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xfc]
mov edi, ecx
fild dword [edi + 0x54]
fstp qword [esp + 0x44]
fild dword [edi + 0x70]
fstp qword [esp + 0x7c]
call fcn.0041232b
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40843e
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 + 0x40], eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0xf4], esi
mov edx, dword [edi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], vtable.CFont.0
push esi
push str.Fixedsys
push 0x6e
lea ecx, [esp + 0x34]
mov byte [esp + 0x100], 1
call fcn.00414800
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call edx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x84]
push ecx
push 0x5c
push edx
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x28]
mov dword [esp + 0x8c], 0x384
call fcn.004142fb
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x2c]
call fcn.004142a8
mov edx, dword [ebp]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call edx
fld qword [esp + 0x44]
fdiv qword [esp + 0x7c]
mov eax, dword [edi + 0x98]
sub esp, 8
lea ecx, [esp + 0x48]
fmul qword [0x457508]
fstp qword [esp]
push eax
push str._s_.0f__
push ecx
call fcn.00401f90
mov ebx, dword [esp + 0x54]
mov eax, dword [ebx - 0xc]
add esp, 0x14
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
sub eax, esi
sub eax, dword [esp + 0x5c]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x68]
sar ecx, 1
mov dword [esp + 0x18], ecx
sub eax, dword [esp + 0x50]
add esi, ecx
sub eax, dword [esp + 0x60]
mov dword [esp + 0x20], esi
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
lea esi, [edx + eax]
mov edx, esi
sub edx, eax
mov dword [esp + 0x44], edx
mov edx, dword [edi + 0x84]
sub edx, dword [edi + 0x7c]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], edx
mov dword [esp + 0x24], esi
je 0x4085af
push 0x105
push 0
mov dword [edi + 0x78], ecx
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x7c], eax
mov eax, dword [esp + 0x28]
push 0
push ecx
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], esi
call dword [sym.imp.USER32.dll_RedrawWindow]
lea esi, [esp + 0x6c]
call fcn.00407d50
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x24]
jge 0x408738
cmp eax, dword [esp + 0x1c]
jg 0x408602
mov edx, dword [edi + 0x5c]
push edx
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 + 0x15], cl
mov cl, ah
not cl
mov byte [esp + 0x17], cl
mov ecx, eax
shr ecx, 0x10
xor edx, edx
not cl
mov dh, cl
mov dl, byte [esp + 0x17]
jmp 0x408769
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x84]
push ecx
mov ecx, ebp
mov dword [esp + 0x44], edx
call fcn.0041450f
mov edx, dword [esp + 0x70]
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x7c]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.0041450f
mov eax, dword [edi + 0x58]
mov edx, dword [ebp]
mov cl, al
not cl
mov byte [esp + 0x16], cl
mov cl, ah
not cl
mov byte [esp + 0x17], cl
mov ecx, eax
shr ecx, 0x10
not cl
mov byte [esp + 0x15], cl
push eax
mov eax, dword [edx + 0x2c]
mov ecx, ebp
call eax
movzx ecx, byte [esp + 0x16]
mov edx, dword [ebp]
mov edx, dword [edx + 0x30]
xor eax, eax
mov ah, byte [esp + 0x15]
mov al, byte [esp + 0x17]
shl eax, 8
or eax, ecx
push eax
mov ecx, ebp
call edx
mov eax, dword [ebx - 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_ExtTextOutW]
push 0
push eax
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 4]
push 4
push ecx
push edx
push eax
call esi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov cl, al
mov dl, ah
not dl
shr eax, 0x10
not cl
mov byte [esp + 0x16], dl
not al
xor edx, edx
mov dh, al
movzx eax, cl
mov ecx, ebp
mov dl, byte [esp + 0x16]
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 + 0x3c]
mov edx, dword [esp + 0x30]
push 0
push eax
push ebx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebp + 4]
push 4
push ecx
push edx
push eax
call esi
jmp 0x4087ad
mov ecx, dword [edi + 0x58]
push ecx
lea edx, [edi + 0x78]
push edx
mov ecx, ebp
call fcn.0041450f
mov eax, dword [edi + 0x58]
mov cl, al
not cl
mov byte [esp + 0x15], cl
mov cl, ah
not cl
mov byte [esp + 0x16], cl
mov ecx, eax
shr ecx, 0x10
xor edx, edx
not cl
mov dh, cl
mov dl, byte [esp + 0x16]
movzx ecx, byte [esp + 0x15]
shl edx, 8
or edx, ecx
mov esi, edx
mov edx, dword [ebp]
push eax
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 + 0x24]
push 0
push eax
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 4]
push 4
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [ebp]
mov eax, dword [esp + 0x58]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebp
call edx
lea ecx, [esp + 0x28]
call fcn.004142fb
mov byte [esp + 0xf4], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.CFont.0
call fcn.00402140
lea eax, [ebx - 0x10]
mov dword [esp + 0xf4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408805
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00428d80
add esp, 0xe4
ret 4