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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0x5c]
push edi
push eax
mov ecx, dword [esi + 0x3b4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esi + 0x37c]
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x6c]
push 0xfffffffffffffff6
lea edx, [esp + 0x24]
push 0xfffffffffffffff6
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x4fd474
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x4fd484
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esi + 0x3b0]
call fcn.004f7250
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov ecx, eax
mov edi, dword [esp + 0x78]
sub ecx, edx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x70]
fild dword [esp + 0x10]
sub edi, ecx
mov dword [esp + 0x10], edi
mov edi, dword [ebp + 8]
fstp qword [esp + 0x18]
fild dword [esi + 0x54]
fild dword [esp + 0x10]
sub edi, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], edi
mov edi, ecx
fdivr qword [esp + 0x18]
sub edi, ebx
mov ebx, dword [esp + 0x7c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x74]
fmulp st(1)
sub ebx, edi
fdiv st(1)
fld st(0)
fmul qword [0x541eb0]
fstp qword [esp + 0x80]
fstp qword [esp + 0x38]
fild dword [esp + 0x10]
fild dword [esi + 0x58]
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0xc]
fild dword [esp + 0x10]
sub ebx, edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x10], ebx
sub ecx, edi
fdivr st(2)
sub eax, edx
mov ebx, dword [0x546560]
mov edx, dword [0x553d9c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmulp st(1)
fdiv st(1)
fstp qword [esp + 0x30]
fld st(0)
fmul qword [0x541ea8]
fdivr st(2)
fmul qword [0x541098]
fstp qword [esp + 0x58]
fld st(2)
fmul qword [0x541ea8]
fdivr qword [esp + 0x18]
fmul qword [0x541098]
fstp qword [esp + 0x40]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fdiv st(3)
fstp qword [esp + 0x18]
fild dword [esp + 0x10]
fdiv st(1)
fstp qword [esp + 0x10]
fmul qword [esp + 0x30]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x8c]
mov dword [esp + 0x88], edx
rep stosd dword es:[edi], eax
call fcn.005327d8
fstp st(0)
fmul qword [esp + 0x38]
push eax
call fcn.005327d8
fld qword [esp + 0x34]
fmul qword [0x541eb0]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
fmul qword [0x541098]
push eax
lea ecx, [esp + 0xa0]
sub esp, 8
fstp qword [esp]
fld qword [esp + 0xa0]
fmul qword [0x541098]
sub esp, 8
fstp qword [esp]
push str._.2f_x__.2f_cm___.2f_x__.2f_inch___d_x__d_pix
push ecx
call fcn.00532039
mov eax, dword [esi + 0x134]
add esp, 0x30
xor ecx, ecx
test eax, eax
jle 0x4fd648
mov edx, dword [esi + 0x138]
cmp dword [edx], 1
je 0x4fd628
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4fd619
jmp 0x4fd648
cmp ecx, 0xffffffff
je 0x4fd648
mov eax, dword [esi + 0x118]
lea edx, [esp + 0x88]
push edx
push ecx
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push 0xf0
push eax
mov ecx, esi
call fcn.004fbe80
mov ecx, dword [eax]
lea edx, [esp + 0xa8]
push ecx
push str._s__.2f_x__.2f_cm____.2f_x__.2f_inch
push edx
call fcn.00532039
mov eax, dword [esp + 0x3c]
mov edx, dword [0x546564]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 0x2c
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4fd6ca
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4fd6ca
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov edx, dword [esi + 0x134]
xor eax, eax
test edx, edx
jle 0x4fd70b
mov ecx, dword [esi + 0x138]
cmp dword [ecx], 2
je 0x4fd6eb
inc eax
add ecx, 4
cmp eax, edx
jl 0x4fd6dc
jmp 0x4fd70b
cmp eax, 0xffffffff
je 0x4fd70b
mov edx, dword [esi + 0x118]
lea ecx, [esp + 0x88]
push ecx
push eax
push 0x40b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x546564]
lea eax, [ebx - 0xc]
cmp eax, ecx
je 0x4fd72b
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x4fd72b
push esi
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8