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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x68eefb
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
push esi
push edi
mov eax, dword [0x70c004]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
push 0x13
xor esi, esi
push str.SaveSmallImageSizeW
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], esi
mov byte [esp + 0x84], 0
call fcn.004051a0
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x2e4], esi
call fcn.0046f7b8
mov ecx, eax
call fcn.00470539
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x90], 0x10
mov dword [esp + 0x20], eax
jb 0x411b7e
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0045c06d
add esp, 4
fild dword [esp + 0x20]
sub esp, 0xc
lea edx, [esp + 0xa0]
fdiv qword [0x6cfc58]
fstp dword [esp + 0x30]
fld1
fstp dword [esp + 8]
fld dword [esp + 0x30]
fst dword [esp + 4]
fstp dword [esp]
push edx
call fcn.00480011
fldz
mov eax, dword [ebx + 8]
fst dword [esp + 0x80]
mov eax, dword [eax + 8]
fst dword [esp + 0x7c]
fst dword [esp + 0x78]
add esp, 0x10
fst dword [esp + 0x64]
push 2
fst dword [esp + 0x64]
push 2
fst dword [esp + 0x64]
push esi
fst dword [esp + 0x64]
lea ecx, [eax + 0x80918]
fst dword [esp + 0x60]
fst dword [esp + 0x5c]
fst dword [esp + 0x58]
fst dword [esp + 0x54]
fst dword [esp + 0x50]
fst dword [esp + 0x4c]
fst dword [esp + 0x48]
fst dword [esp + 0x44]
fstp dword [esp + 0x40]
call fcn.0046f4f8
mov ecx, eax
call fcn.00475f32
fldz
mov edx, dword [ebx + 0x5ec90]
mov edx, dword [edx + 0x5c]
push 0xffffffffffffffff
sub esp, 8
lea ecx, [ebx + 0x5ec90]
fst dword [esp + 4]
lea eax, [esp + 0xa0]
fstp dword [esp]
push eax
call edx
lea eax, [esp + 0x94]
push eax
lea ecx, [ebx + 0x60a10]
push ecx
call fcn.00456810
lea edx, [esp + 0x94]
push edx
lea eax, [ebx + 0x609ec]
push eax
call fcn.00456810
fldz
sub esp, 0xc
fst dword [esp + 8]
fstp dword [esp + 4]
lea ecx, [esp + 0xe0]
fld dword [esp + 0x30]
fmul qword [0x6d0008]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp]
push ecx
call fcn.0047ffaa
add esp, 0x10
push eax
lea ecx, [esp + 0x38]
call fcn.0040a520
fldz
mov edi, dword [ebx + 0x5ed24]
lea esi, [ebx + 0x5ed24]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x40]
fstp dword [esp]
push edx
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0xa8]
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 + 0x14], ecx
fild dword [esp + 0x14]
mov ecx, dword [ebx + 0x5f098]
sub ecx, dword [ebx + 0x5f094]
fdiv qword [0x6cfc58]
mov dword [esp + 0x18], edx
mov eax, 0x88888889
mov dword [esp + 0x28], 0
imul ecx
fstp dword [esp + 0x20]
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x411e51
lea edi, [ebx + 0x5eef0]
mov dword [esp + 0x1c], edi
jmp 0x411d44
mov edi, dword [esp + 0x1c]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
fldz
sub esp, 0xc
fstp dword [esp + 8]
fild dword [esp + 0x3c]
lea eax, [esp + 0xe0]
fchs
fstp dword [esp + 4]
fild dword [esp + 0x38]
fchs
fstp dword [esp]
push eax
call fcn.0047ffaa
fldz
fstp dword [esp + 0xc]
add esp, 4
fild dword [esp + 0x3c]
lea ecx, [esp + 0x1a0]
fld dword [esp + 0x2c]
fld st(0)
fdivp st(2)
fld dword [esp + 0x30]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fidivr dword [esp + 0x38]
fmulp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push ecx
call fcn.0047ffaa
add esp, 0x10
lea edx, [esp + 0x194]
push edx
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0xa4]
call fcn.0040f290
mov ecx, eax
call fcn.0040f290
mov edx, dword [edi]
sub esp, 0x40
mov esi, eax
mov eax, dword [edx + 0x48]
mov edi, esp
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x5c]
push 0xffffffffffffffff
mov ecx, edi
call eax
mov ecx, dword [ebx + 0x5f098]
sub ecx, dword [ebx + 0x5f094]
mov esi, dword [esp + 0x28]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
inc esi
add edi, 0x84
add ecx, edx
cmp esi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], edi
jl 0x411d40
fld dword [0x6d0004]
xor esi, esi
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
fld dword [0x6d0000]
mov dword [esp + 0x78], edx
fst dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fld dword [0x6cfffc]
mov dword [esp + 0x7c], eax
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x80], ecx
fst dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fld dword [0x6cfff8]
mov dword [esp + 0x84], edx
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], eax
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x8c], ecx
xor edi, edi
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea edx, [esp + 0x120]
fld dword [esp + esi*8 + 0x88]
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fmul dword [esp + esi*8 + 0x84]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push edx
call fcn.0047ffaa
fld dword [eax]
fstp dword [esp + 0x44]
add esp, 0x10
fld dword [eax + 4]
push 0xffffffffffffffff
fstp dword [esp + 0x3c]
sub esp, 8
fld dword [eax + 8]
lea ecx, [esp + 0x120]
fstp dword [esp + 0x48]
fld dword [eax + 0xc]
fstp dword [esp + 0x4c]
fld dword [eax + 0x10]
fstp dword [esp + 0x50]
fld dword [eax + 0x14]
fstp dword [esp + 0x54]
fld dword [eax + 0x18]
fstp dword [esp + 0x58]
fld dword [eax + 0x1c]
fstp dword [esp + 0x5c]
fld dword [eax + 0x20]
fstp dword [esp + 0x60]
fld dword [eax + 0x24]
fstp dword [esp + 0x64]
fld dword [eax + 0x28]
fstp dword [esp + 0x68]
fld dword [eax + 0x2c]
fstp dword [esp + 0x6c]
fld dword [eax + 0x30]
fstp dword [esp + 0x70]
fld dword [eax + 0x34]
fstp dword [esp + 0x74]
fld dword [eax + 0x38]
fstp dword [esp + 0x78]
fld dword [eax + 0x3c]
lea eax, [esp + 0x40]
fstp dword [esp + 0x7c]
fldz
fst dword [esp + 4]
fstp dword [esp]
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.0040f290
push eax
push esi
push edi
lea ecx, [ebx + 0x5ee4c]
call fcn.004c3f68
inc esi
cmp esi, 3
jl 0x411ec1
mov ecx, dword [ebx + 0x5fd10]
sub ecx, dword [ebx + 0x5fd0c]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], 0
test eax, eax
jle 0x412103
lea edi, [ebx + 0x5f394]
mov dword [esp + 0x1c], edi
jmp 0x411ff6
mov edi, dword [esp + 0x1c]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call edx
fldz
sub esp, 0xc
fstp dword [esp + 8]
fild dword [esp + 0x24]
lea eax, [esp + 0x1e0]
fchs
fstp dword [esp + 4]
fild dword [esp + 0x20]
fchs
fstp dword [esp]
push eax
call fcn.0047ffaa
fldz
fstp dword [esp + 0xc]
add esp, 4
fild dword [esp + 0x24]
lea ecx, [esp + 0x160]
fld dword [esp + 0x2c]
fld st(0)
fdivp st(2)
fld dword [esp + 0x30]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fidivr dword [esp + 0x20]
fmulp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push ecx
call fcn.0047ffaa
add esp, 0x10
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x1dc]
push ecx
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0xa4]
call fcn.0040f290
mov ecx, eax
call fcn.0040f290
mov edx, dword [edi]
sub esp, 0x40
mov esi, eax
mov eax, dword [edx + 0x48]
mov edi, esp
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x5c]
push 0xffffffffffffffff
mov ecx, edi
call eax
mov ecx, dword [ebx + 0x5fd10]
sub ecx, dword [ebx + 0x5fd0c]
mov esi, dword [esp + 0x28]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
inc esi
add edi, 0x84
add ecx, edx
cmp esi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], edi
jl 0x411ff2
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret