Function at 0x49f9a0
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 0x49fa14
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x49fa24
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x70]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esi + 0x3b0]
call fcn.004997f0
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 [0x4d4b78]
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 [0x4d9540]
mov edx, dword [0x4e3a2c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmulp st(1)
fdiv st(1)
fstp qword [esp + 0x30]
fld st(0)
fmul qword [0x4d4b70]
fdivr st(2)
fmul qword [0x4d3e58]
fstp qword [esp + 0x58]
fld st(2)
fmul qword [0x4d4b70]
fdivr qword [esp + 0x18]
fmul qword [0x4d3e58]
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.004c64c8
fstp st(0)
fmul qword [esp + 0x38]
push eax
call fcn.004c64c8
fld qword [esp + 0x34]
fmul qword [0x4d4b78]
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 [0x4d3e58]
push eax
lea ecx, [esp + 0xa0]
sub esp, 8
fstp qword [esp]
fld qword [esp + 0xa0]
fmul qword [0x4d3e58]
sub esp, 8
fstp qword [esp]
push str._.2f_x__.2f_cm___.2f_x__.2f_inch___d_x__d_pix
push ecx
call fcn.004c5d39
mov eax, dword [esi + 0x134]
add esp, 0x30
xor ecx, ecx
test eax, eax
jle 0x49fbe8
mov edx, dword [esi + 0x138]
cmp dword [edx], 1
je 0x49fbc8
inc ecx
add edx, 4
cmp ecx, eax
jl 0x49fbb9
jmp 0x49fbe8
cmp ecx, 0xffffffff
je 0x49fbe8
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.0049e420
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.004c5d39
mov eax, dword [esp + 0x3c]
mov edx, dword [0x4d9544]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 0x2c
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49fc6a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x49fc6a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov edx, dword [esi + 0x134]
xor eax, eax
test edx, edx
jle 0x49fcab
mov ecx, dword [esi + 0x138]
cmp dword [ecx], 2
je 0x49fc8b
inc eax
add ecx, 4
cmp eax, edx
jl 0x49fc7c
jmp 0x49fcab
cmp eax, 0xffffffff
je 0x49fcab
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 [0x4d9544]
lea eax, [ebx - 0xc]
cmp eax, ecx
je 0x49fccb
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x49fccb
push esi
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8