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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x68ebfb
mov eax, dword fs:[0]
push eax
sub esp, 0x204
push esi
push edi
mov eax, dword [0x70c004]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
push 0x13
xor esi, esi
push str.SaveSmallImageSizeW
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], esi
mov byte [esp + 0x7c], 0
call fcn.004051a0
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x21c], esi
call fcn.0046f7b8
mov ecx, eax
call fcn.00470539
mov dword [esp + 0x218], 0xffffffff
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0xc], eax
jb 0x4167b8
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0045c06d
add esp, 4
fild dword [esp + 0xc]
sub esp, 0xc
lea edx, [esp + 0xd8]
fdiv qword [0x6cfc58]
fstp dword [esp + 0x1c]
fld1
fstp dword [esp + 8]
fld dword [esp + 0x1c]
fst dword [esp + 4]
fstp dword [esp]
push edx
call fcn.00480011
fldz
mov eax, dword [ebx + 8]
fst dword [esp + 0x78]
mov eax, dword [eax + 8]
fst dword [esp + 0x74]
fst dword [esp + 0x70]
add esp, 0x10
fst dword [esp + 0x5c]
push 2
fst dword [esp + 0x5c]
push 2
fst dword [esp + 0x5c]
push esi
fst dword [esp + 0x5c]
lea ecx, [eax + 0x80918]
fst dword [esp + 0x58]
fst dword [esp + 0x54]
fst dword [esp + 0x50]
fst dword [esp + 0x4c]
fst dword [esp + 0x48]
fst dword [esp + 0x44]
fst dword [esp + 0x40]
fst dword [esp + 0x3c]
fstp dword [esp + 0x38]
call fcn.0046f4f8
mov ecx, eax
call fcn.00475f32
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x2064], esi
je 0x4168e2
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x98]
fld dword [esp + 0x1c]
fld qword [0x6cfc50]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fmul qword [0x6cfbb8]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
push eax
call fcn.0047ffaa
add esp, 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.0040a520
fldz
mov edi, dword [ebx + 0x5ebfc]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x38]
fstp dword [esp]
push ecx
lea edx, [esp + 0x9c]
lea esi, [ebx + 0x5ebfc]
push edx
lea ecx, [esp + 0xe0]
call fcn.0040f290
push eax
mov eax, dword [edi + 0x5c]
mov ecx, esi
call eax
fldz
sub esp, 0xc
fst dword [esp + 8]
lea ecx, [esp + 0x98]
fst dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.0047ffaa
add esp, 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.0040a520
fldz
mov esi, dword [ebx + 0x5ee58]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x38]
fstp dword [esp]
push edx
lea eax, [esp + 0x9c]
lea edi, [ebx + 0x5ee58]
push eax
lea ecx, [esp + 0xe0]
call fcn.0040f290
mov edx, dword [esi + 0x5c]
push eax
mov ecx, edi
call edx
fldz
sub esp, 0xc
fst dword [esp + 8]
fld dword [esp + 0x1c]
lea eax, [esp + 0x98]
fmul qword [0x6cfe90]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fstp dword [esp]
push eax
call fcn.0047ffaa
add esp, 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.0040a520
fldz
mov edi, dword [ebx + 0x5eeec]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x38]
fstp dword [esp]
push ecx
lea edx, [esp + 0x9c]
lea esi, [ebx + 0x5eeec]
push edx
lea ecx, [esp + 0xe0]
call fcn.0040f290
push eax
mov eax, dword [edi + 0x5c]
mov ecx, esi
call eax
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x1c]
lea ecx, [esp + 0x98]
fld qword [0x6cff70]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fmul qword [0x6cfbb8]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
push ecx
call fcn.0047ffaa
add esp, 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.0040a520
fldz
mov edi, dword [ebx + 0x5ec90]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x38]
fstp dword [esp]
push edx
lea eax, [esp + 0x9c]
lea esi, [ebx + 0x5ec90]
push eax
lea ecx, [esp + 0xe0]
call fcn.0040f290
mov edx, dword [edi + 0x5c]
push eax
mov ecx, esi
call edx
mov eax, dword [ebx + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x138d4]
mov edx, dword [eax + 0x138d8]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov ecx, dword [ebx + 0x5eddc]
sub ecx, dword [ebx + 0x5edd8]
fdiv qword [0x6cfc58]
mov dword [esp + 0x20], edx
mov eax, 0x88888889
xor esi, esi
mov dword [esp + 0xc], esi
imul ecx
fstp dword [esp + 0x24]
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x416bcb
mov dword [esp + 0x18], esi
jmp 0x416aa4
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x5edbc]
mov edx, dword [ecx + esi]
mov edx, dword [edx + 0x30]
add ecx, esi
lea eax, [esp + 0x1c]
push eax
call edx
fldz
sub esp, 0xc
fstp dword [esp + 8]
fild dword [esp + 0x2c]
lea eax, [esp + 0x118]
fchs
fstp dword [esp + 4]
fild dword [esp + 0x28]
fchs
fstp dword [esp]
push eax
call fcn.0047ffaa
fldz
fstp dword [esp + 0xc]
add esp, 4
fild dword [esp + 0x2c]
lea ecx, [esp + 0x158]
fld dword [esp + 0x30]
fld st(0)
fdivp st(2)
fld dword [esp + 0x1c]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fidivr dword [esp + 0x28]
fmulp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp]
push ecx
call fcn.0047ffaa
mov edx, dword [ebx + 0x5edbc]
lea eax, [esi + edx]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
add eax, 0x48
add esp, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x190]
push ecx
lea edx, [esp + 0x114]
push edx
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0xdc]
call fcn.0040f290
mov ecx, eax
call fcn.0040f290
mov edx, dword [esp + 0x28]
sub esp, 0x40
mov esi, eax
mov eax, dword [edx]
mov edi, esp
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
push 0xffffffffffffffff
call eax
mov ecx, dword [ebx + 0x5eddc]
sub ecx, dword [ebx + 0x5edd8]
mov esi, dword [esp + 0xc]
add dword [esp + 0x18], 0x84
mov eax, 0x88888889
imul ecx
add edx, ecx
inc esi
sar edx, 6
mov dword [esp + 0xc], esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jl 0x416aa0
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret