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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
xor eax, eax
mov dword [esp + 0x80], edx
push edi
mov dword [esp + 0x24], eax
xor esi, esi
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push ecx
push 6
mov dword [esp + 0x20], esi
call sym.FreeImage32.dll__FreeImage_FindFirstMetadata_12
mov dword [esp + 0x80], eax
test eax, eax
je 0x100670ca
mov edx, dword [esp + 0x34]
mov dword [esp + 0x34], edx
jmp 0x10066884
mov esi, dword [esp + 0x14]
test edx, edx
je 0x10066890
mov eax, dword [edx]
movzx eax, word [eax + 8]
jmp 0x10066892
xor eax, eax
mov dword [esp + 0x30], eax
movzx eax, ax
add eax, 0xfffffe00
cmp eax, 0x19
ja case.0x100668ae.513
movzx eax, byte [eax + 0x100670f8]
jmp dword [eax*4 + 0x100670e8]
test edx, edx
je 0x100668c1
mov eax, dword [edx]
movzx eax, word [eax + 0xa]
jmp 0x100668c3
xor eax, eax
cmp eax, 2
jne case.0x100668ae.512
test edx, edx
je 0x100668d7
mov eax, dword [edx]
mov edx, dword [eax + 0x14]
jmp 0x100668d9
xor edx, edx
mov ecx, edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100668f6
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.10004840
mov edx, dword [esp + 0x58]
lea esi, [esp + 0x48]
xor eax, eax
mov dword [esp + 0x9c], 0xf
xor edi, edi
mov dword [esp + 0x88], eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x38], eax
cmovae esi, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov ax, word [0x103e9954]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x98], 1
mov word [esp + 0x44], ax
mov byte [esp + 0x88], al
mov byte [esp + 0x89], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edx
cmp edx, 1
jb 0x100669e2
lea ecx, [edx + esi]
movsx edx, al
sub ecx, esi
mov dword [esp + 0x20], edx
push ecx
push edx
push esi
call fcn.1026cb50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100669de
nop word [eax + eax]
movzx eax, byte [esi]
lea ecx, [esp + 0x88]
cmp al, byte [ecx]
jne 0x100669b2
xor eax, eax
jmp 0x100669b7
sbb eax, eax
or eax, 1
test eax, eax
je 0x10066a72
mov eax, dword [esp + 0x28]
inc esi
add eax, dword [esp + 0x1c]
sub eax, esi
push eax
push dword [esp + 0x24]
push esi
call fcn.1026cb50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100669a0
mov edx, dword [esp + 0x28]
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x10066b72
nop
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xf
cmp edx, eax
jb 0x100670e1
sub edx, eax
mov ecx, esi
sub ecx, eax
lea eax, [esp + 0x48]
cmp edx, ecx
cmovb ecx, edx
cmp dword [esp + 0x5c], 0x10
push ecx
cmovae eax, dword [esp + 0x4c]
lea ecx, [esp + 0x64]
add eax, dword [esp + 0x1c]
push eax
call fcn.10004840
cmp edi, dword [esp + 0x40]
je 0x10066a7f
movups xmm0, xmmword [esp + 0x60]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [edi + 0x10], xmm0
add edi, 0x18
mov dword [esp + 0x3c], edi
jmp 0x10066ac8
sub esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
jmp 0x100669e5
lea eax, [esp + 0x60]
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.100672c0
mov ecx, dword [esp + 0x74]
cmp ecx, 0x10
jb 0x10066ac4
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10066aba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100670d7
push ecx
push edx
call fcn.1026a022
add esp, 8
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x48]
inc esi
mov dword [esp + 0x28], edx
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x18], esi
cmovae ecx, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
cmp edx, 1
jb 0x10066b5e
lea eax, [edx - 1]
cmp esi, eax
ja 0x10066b5e
lea edx, [ecx + 1]
add ecx, esi
add edx, eax
mov ax, word [esp + 0x44]
mov dword [esp + 0x20], edx
sub edx, ecx
movsx esi, al
push edx
push esi
push ecx
mov dword [esp + 0x28], esi
call fcn.1026cb50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10066b5a
nop dword [eax]
movzx eax, byte [esi]
lea ecx, [esp + 0x88]
cmp al, byte [ecx]
jne 0x10066b32
xor eax, eax
jmp 0x10066b37
sbb eax, eax
or eax, 1
test eax, eax
je 0x10066bd0
mov eax, dword [esp + 0x20]
inc esi
sub eax, esi
push eax
push dword [esp + 0x20]
push esi
call fcn.1026cb50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10066b20
mov edx, dword [esp + 0x28]
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x100669f0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], 0
mov dword [esp + 0x74], 0xf
cmp edx, ecx
jb 0x100670e1
sub edx, ecx
lea eax, [esp + 0x48]
or esi, 0xffffffff
cmp edx, 0xffffffff
cmovb esi, edx
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x1c], esi
cmovae eax, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x20], eax
cmp esi, 0xf
ja 0x10066bda
push esi
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x78], esi
push eax
call fcn.1026cc00
mov byte [esp + esi + 0x6c], 0
jmp 0x10066c7d
sub esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
jmp 0x10066b61
cmp esi, 0x7fffffff
ja 0x100670dc
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x10066c00
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
jmp 0x10066c20
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x10066c3c
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x100670d2
push ecx
call fcn.10269f9d
add esp, 4
test eax, eax
je 0x100670d7
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x10066c4f
test eax, eax
je 0x10066c4d
push eax
call fcn.10269f9d
add esp, 4
mov ecx, eax
jmp 0x10066c4f
xor ecx, ecx
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x20], ecx
push ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], esi
call fcn.1026c360
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], ecx
mov byte [ecx + eax], 0
add esp, 0xc
cmp edi, dword [esp + 0x40]
je 0x10066cb6
movups xmm0, xmmword [esp + 0x60]
mov esi, dword [esp + 0x2c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [edi + 0x10], xmm0
add edi, 0x18
jmp 0x10066d07
lea eax, [esp + 0x60]
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.100672c0
mov ecx, dword [esp + 0x74]
cmp ecx, 0x10
jb 0x10066cfb
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10066cf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100670d7
push ecx
push edx
call fcn.1026a022
add esp, 8
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x2c], esi
mov eax, edi
mov dword [esp + 0x28], edi
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
mov dword [esp + 0x44], eax
test eax, eax
jle 0x10066de6
mov edi, esi
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x1c], edi
jb 0x10066d36
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
add ecx, 5
mov dword [esp + 0x18], eax
add eax, ecx
push eax
mov dword [esp + 0x24], eax
call fcn.102709ea
mov esi, eax
add esp, 4
test esi, esi
jne 0x10066d5f
mov dword [esp + 0x24], eax
jmp 0x10066dd0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov byte [esi + 2], al
mov eax, ecx
shr eax, 8
push ecx
push dword [esp + 0x20]
mov byte [esi + 3], al
lea eax, [esi + 5]
push eax
mov word [esi], 0x21c
mov byte [esi + 4], cl
call fcn.1026c360
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x10066da0
mov eax, dword [esp + 0x18]
add eax, 5
mov dword [esp + 0x14], eax
jmp 0x10066dcc
push dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
add eax, 5
add eax, esi
push eax
call fcn.1026c360
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push eax
call fcn.10270662
add esp, 4
mov dword [esp + 0x24], esi
add edi, 0x18
sub dword [esp + 0x44], 1
jne 0x10066d26
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x10066e4e
lea eax, [esp + 0x38]
push eax
push edi
push esi
call fcn.10067490
mov eax, dword [esp + 0x4c]
add esp, 0xc
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x10066e2c
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100670d7
push ecx
push esi
call fcn.1026a022
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x5c]
cmp ecx, 0x10
jb 0x10066e84
mov edx, dword [esp + 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10066e7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100670d7
push ecx
push edx
call fcn.1026a022
add esp, 8
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
mov byte [esp + 0x48], 0
jmp case.0x100668ae.512
test edx, edx
je case.0x100668ae.512
mov eax, dword [edx]
cmp word [eax + 0xa], 2
jne case.0x100668ae.512
test edx, edx
je 0x10066ebc
mov edi, dword [eax + 0x14]
jmp 0x10066ebe
xor edi, edi
lea eax, [esi + 6]
push eax
mov dword [esp + 0x24], eax
call fcn.102709ea
mov esi, eax
add esp, 4
test esi, esi
jne 0x10066edd
mov dword [esp + 0x24], eax
jmp case.0x100668ae.512
mov eax, dword [esp + 0x30]
mov word [esi], 0x21c
mov byte [esi + 2], al
mov word [esi + 3], 0x100
mov al, byte [edi]
mov edi, dword [esp + 0x24]
mov byte [esi + 5], al
test edi, edi
jne 0x10066f09
mov dword [esp + 0x14], 6
jmp 0x10066fc6
push dword [esp + 0x14]
lea eax, [esi + 6]
push edi
push eax
call fcn.1026c360
mov eax, dword [esp + 0x2c]
jmp 0x10066fb6
test edx, edx
je case.0x100668ae.512
mov eax, dword [edx]
cmp word [eax + 0xa], 2
jne case.0x100668ae.512
test edx, edx
je 0x10066f41
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
jmp 0x10066f45
xor ecx, ecx
xor edi, edi
lea eax, [esi + 5]
mov dword [esp + 0x18], ecx
add eax, ecx
push eax
mov dword [esp + 0x24], eax
call fcn.102709ea
mov esi, eax
add esp, 4
test esi, esi
jne 0x10066f67
mov dword [esp + 0x24], eax
jmp case.0x100668ae.512
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov byte [esi + 2], al
mov eax, ecx
shr eax, 8
push ecx
mov byte [esi + 3], al
lea eax, [esi + 5]
push edi
push eax
mov word [esi], 0x21c
mov byte [esi + 4], cl
call fcn.1026c360
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edi, dword [esp + 0x24]
add eax, 5
test edi, edi
jne 0x10066fa5
mov dword [esp + 0x14], eax
jmp 0x10066fc6
push dword [esp + 0x14]
add eax, esi
push edi
push eax
call fcn.1026c360
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x14], eax
push edi
call fcn.10270662
add esp, 4
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x80]
mov edx, dword [edi]
mov dword [esp + 0x30], edx
mov esi, dword [edx + 4]
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
cmp ecx, dword [esi + 4]
jge 0x10067038
mov esi, dword [esi]
xor edi, edi
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x10066880
nop dword [eax + eax]
cmp edi, ecx
je 0x10067023
lea ecx, [esp + 0x1c]
inc edi
call fcn.10004970
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp eax, esi
jne 0x10067000
mov edx, dword [esp + 0x34]
jmp 0x10066880
mov edx, dword [eax + 0x28]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov dword [ecx], eax
jmp 0x10066880
mov eax, edx
test eax, eax
je 0x10067047
push eax
call fcn.10270662
add esp, 4
push edi
call fcn.10270662
mov edi, dword [esp + 0x18]
add esp, 4
add edi, 7
push edi
call fcn.102709ea
mov esi, eax
add esp, 4
test esi, esi
je 0x100670ad
mov eax, 0x200
mov dword [esi], 0x21c
mov byte [esi + 4], 2
mov word [esi + 5], ax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x1006708b
mov dword [esp + 0x14], 7
jmp 0x100670ad
push dword [esp + 0x14]
push eax
lea eax, [esi + 7]
push eax
call fcn.1026c360
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x14], edi
push eax
call fcn.10270662
add esp, 4
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100019f0
call fcn.10270999
call fcn.10001a70
call fcn.1005ea20
nop
retf 0x66f