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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
fld dword [esi + 0x34]
fcomp dword [0x10136e8c]
fnstsw ax
test ah, 0x40
jne 0x100b6693
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
lea eax, [esi + 0xe6cc]
mov dword [esi + 0xe6cc], ecx
mov ecx, dword [esi + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x40]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0xa8]
test eax, eax
jne 0x100b66bb
mov eax, dword [esi + 0xac]
test eax, eax
je 0x100b6a59
cmp dword [esi + 0xe6bc], 0xbf800000
jne 0x100b68fe
mov edx, dword [esi + 0x9c]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa4]
lea ecx, [eax + edx]
xor eax, eax
mov ax, word [esi + 0x65fc]
cmp ecx, eax
jb 0x100b66e6
mov ecx, eax
mov eax, dword [esi + 0x98]
mov edi, dword [esi + 0xa0]
add eax, edi
xor edi, edi
mov di, word [esi + 0x65fe]
mov dword [esp + 0x24], ecx
cmp eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
jb 0x100b6711
mov dword [esp + 0x14], edi
cmp edx, ecx
mov dword [esp + 0x10], edx
jae 0x100b68d0
mov ebx, dword [esi + 0x98]
mov eax, dword [esp + 0x14]
cmp ebx, eax
mov dword [esp + 0x38], ebx
jae 0x100b68b9
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x3c], edi
lea eax, [edi + 8]
cmp edi, eax
jae 0x100b6872
mov eax, dword [esp + 0x28]
imul eax, edi
mov dword [esp + 0x34], eax
cmp edi, dword [esp + 0x24]
jae 0x100b6872
lea eax, [ebx + 8]
mov ecx, ebx
cmp ebx, eax
mov dword [esp + 0x18], ecx
jae 0x100b6850
cmp ecx, dword [esp + 0x14]
jae 0x100b6850
mov ebx, dword [esi + 0x65c8]
mov eax, dword [esi + 0x657c]
xor edx, edx
add ebx, 0xffffffe7
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x100b67e8
mov edx, edi
and ecx, 1
and edx, 7
xor ebx, ebx
mov bx, word [esi + 0x6608]
lea ecx, [ecx + edx*2]
shl ecx, 1
shr eax, cl
xor ecx, ecx
mov cx, word [esi + 0x6604]
shr edi, cl
and eax, 3
mov edx, eax
imul edi, ebx
mov ebx, dword [esp + 0x18]
shr ebx, cl
add edi, ebx
lea ecx, [eax + edi*4]
mov edi, dword [esi + 0x6628]
xor eax, eax
mov ax, word [edi + ecx*2]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x3c]
jmp 0x100b6801
mov eax, dword [esp + 0x34]
mov ebx, dword [esi + 0x6628]
add eax, ecx
lea ecx, [edx + eax*4]
xor eax, eax
mov ax, word [ebx + ecx*2]
mov ecx, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jg 0x100b68a2
sub eax, dword [esi + 0x65c4]
jns 0x100b6815
xor eax, eax
mov ebx, dword [esp + edx*4 + 0x48]
add ebx, eax
mov dword [esp + edx*4 + 0x48], ebx
mov eax, dword [esp + edx*4 + 0x58]
inc eax
mov dword [esp + edx*4 + 0x58], eax
mov eax, dword [esi + 0x657c]
test eax, eax
jne 0x100b683c
inc edx
cmp edx, 4
jb 0x100b6798
mov ebx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x18], ecx
lea eax, [ebx + 8]
cmp ecx, eax
jb 0x100b6779
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
add eax, edx
inc edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
add eax, 8
mov dword [esp + 0x3c], edi
cmp edi, eax
jb 0x100b675e
lea eax, [esp + 0x78]
lea ecx, [esp + 0x48]
mov edx, 8
mov edi, dword [ecx]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], edi
add ecx, 4
fild qword [esp + 0x40]
add eax, 8
dec edx
fadd qword [eax - 8]
fstp qword [eax - 8]
jne 0x100b687f
jmp 0x100b68a6
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
add ebx, 8
cmp ebx, eax
mov dword [esp + 0x38], ebx
jb 0x100b6733
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
add eax, 8
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x100b671d
lea ecx, [esp + 0x78]
lea edx, [esi + 0xe6cc]
mov edi, 4
fld qword [ecx]
fcomp qword [0x101308b8]
fnstsw ax
test ah, 0x40
jne 0x100b68f5
fld qword [ecx + 0x20]
fdiv qword [ecx]
fstp dword [edx]
add edx, 4
add ecx, 8
dec edi
jne 0x100b68df
mov eax, dword [esi + 0xac]
test eax, eax
je 0x100b6a59
cmp dword [esi + 0xe6bc], 0xbf800000
je 0x100b6a59
mov ebx, dword [esi + 0x65c4]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea edi, [esi + 0x662c]
and eax, 7
xor edx, edx
shl eax, 1
mov dword [esp + 0x1c], eax
jmp 0x100b694a
mov eax, dword [esp + 0x1c]
mov ecx, edx
and ecx, 1
add ecx, eax
mov eax, dword [esi + 0x657c]
shl ecx, 1
shr eax, cl
xor ecx, ecx
mov cx, word [edi]
sub ecx, ebx
and eax, 3
test ecx, ecx
jle 0x100b696d
add dword [esp + eax*4 + 0x48], ecx
mov ecx, dword [esp + eax*4 + 0x58]
lea eax, [esp + eax*4 + 0x58]
inc ecx
inc edx
add edi, 2
cmp edx, 8
mov dword [eax], ecx
jb 0x100b6946
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x100b6939
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100b69eb
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x100b69eb
mov eax, dword [esp + 0x50]
test eax, eax
je 0x100b69eb
mov eax, dword [esp + 0x54]
test eax, eax
je 0x100b69eb
lea eax, [esp + 0x48]
lea ecx, [esi + 0xe6cc]
mov edx, 4
xor edi, edi
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov ebx, dword [eax]
fild qword [esp + 0x40]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
add eax, 4
add ecx, 4
fidiv dword [esp + 0x1c]
dec edx
fstp dword [ecx - 4]
jne 0x100b69c0
jmp 0x100b6a59
fld dword [esi + 0xe6bc]
fcomp dword [0x10136e8c]
fnstsw ax
test ah, 0x40
jne 0x100b6a40
fld dword [esi + 0xe6c4]
fcomp dword [0x10136e8c]
fnstsw ax
test ah, 0x40
jne 0x100b6a40
mov edx, dword [esi + 0xe6bc]
mov eax, dword [esi + 0xe6c0]
lea ecx, [esi + 0xe6cc]
mov dword [esi + 0xe6cc], edx
mov edx, dword [esi + 0xe6c4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xe6c8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
jmp 0x100b6a59
mov ecx, dword [esi + 0x6248]
push ecx
push str._s:_Cannot_use_camera_p__white_balance._n
push 0x1016ee30
call fcn.10030c0b
add esp, 0xc
fld dword [esi + 0xe6d8]
fcomp dword [0x10136e8c]
fnstsw ax
test ah, 0x40
je 0x100b6a89
cmp dword [esi + 0x6618], 4
jge 0x100b6a7d
fld dword [esi + 0xe6d0]
jmp 0x100b6a83
fld dword [0x10136e98]
fstp dword [esi + 0xe6d8]
fld dword [esi + 0x2c]
fcomp dword [0x10136e8c]
mov edx, dword [esi + 0x65c4]
mov dword [esp + 0x1c], edx
fnstsw ax
test ah, 0x40
jne 0x100b6aac
push esi
call fcn.100b5ea0
add esp, 4
mov eax, dword [esi + 0x65c4]
mov ecx, dword [esi + 0x65c8]
fld qword [0x101308b8]
sub ecx, eax
lea edi, [esi + 0xe6cc]
mov dword [esi + 0x65c8], ecx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0x7fefffff
mov ecx, edi
mov edx, 4
fld dword [ecx]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x100b6af6
fld dword [ecx]
fstp qword [esp + 0x28]
fld dword [ecx]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x100b6b07
fstp st(0)
fld dword [ecx]
add ecx, 4
dec edx
jne 0x100b6ae3
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x100b6b1a
fstp st(0)
fld qword [esp + 0x28]
lea ecx, [esp + 0x48]
mov eax, edi
mov edx, 4
fld dword [eax]
fdiv st(1)
mov dword [esp + 0x44], 0
add eax, 4
add ecx, 4
dec edx
fst dword [eax - 4]
mov ebx, dword [esi + 0x65c8]
fmul dword [0x1013e688]
mov dword [esp + 0x40], ebx
fidiv dword [esp + 0x40]
fstp dword [ecx - 4]
jne 0x100b6b25
mov eax, dword [esi + 0x8c]
test eax, eax
fstp st(0)
je 0x100b6bab
mov ecx, dword [esp + 0x1c]
push ecx
push str.Scaling_with_p__black__d__multipliers
push 0x1016ee30
call fcn.10030c0b
add esp, 0xc
mov ebx, 4
fld dword [edi]
sub esp, 8
fstp qword [esp]
push 0x10174df0
push 0x1016ee30
call fcn.10030c0b
add esp, 0x10
add edi, 4
dec ebx
jne 0x100b6b7c
push 0x1016ee30
push 0xa
call fcn.10030865
add esp, 8
xor eax, eax
xor edx, edx
mov ax, word [esi + 0x6606]
mov dx, word [esi + 0x6608]
imul eax, edx
mov dword [esp + 0x24], eax
xor edi, edi
shl eax, 2
test eax, eax
mov dword [esp + 0x28], eax
jbe 0x100b6c25
mov eax, dword [esi + 0x6628]
lea ebx, [eax + edi*2]
xor eax, eax
mov ax, word [ebx]
test eax, eax
je 0x100b6c1c
mov edx, dword [esi + 0x65c4]
mov ecx, edi
sub eax, edx
and ecx, 3
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul dword [esp + ecx*4 + 0x48]
call fcn.1002fe10
cmp eax, 0xffff
jge 0x100b6c14
xor edx, edx
test eax, eax
setl dl
dec edx
and eax, edx
jmp 0x100b6c19
mov eax, 0xffff
mov word [ebx], ax
mov eax, dword [esp + 0x28]
inc edi
cmp edi, eax
jb 0x100b6bd1
mov ecx, dword [esi + 0x48]
lea ebx, [esi + 0x48]
test ecx, ecx
mov eax, 0x3ff00000
jne 0x100b6c49
cmp dword [ebx + 4], eax
jne 0x100b6c49
mov ecx, dword [esi + 0x58]
test ecx, ecx
jne 0x100b6c49
cmp dword [esi + 0x5c], eax
je 0x100b6e98
cmp dword [esi + 0x6618], 3
jne 0x100b6e98
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x100b6c72
push str.Correcting_chromatic_aberration..._n
push 0x1016ee30
call fcn.10030c0b
add esp, 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ebx
cmp dword [ebx], 0
jne 0x100b6c90
cmp dword [ebx + 4], 0x3ff00000
je 0x100b6e7d
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax]
push ecx
call fcn.1002e5f3
mov edi, eax
push str.scale_colors__
push edi
push esi
mov dword [esp + 0x44], edi
call fcn.100ab730
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
jbe 0x100b6cdf
mov edx, dword [esp + 0x14]
mov ecx, edi
lea eax, [edx + edx]
mov edx, dword [esp + 0x24]
mov edi, dword [esi + 0x6628]
add eax, 8
add ecx, 2
dec edx
mov di, word [eax + edi - 8]
mov word [ecx - 2], di
jne 0x100b6cc7
xor edi, edi
xor eax, eax
mov di, word [esi + 0x6606]
mov dword [esp + 0x10], eax
test edi, edi
mov dword [esp + 0x28], edi
jbe 0x100b6e70
fild dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
fmul qword [0x101308c0]
fild qword [esp + 0x40]
fsub st(1)
fmul qword [ebx]
faddp st(1)
fld st(0)
call fcn.1002fe10
add edi, 0xfffffffe
mov dword [esp + 0x28], eax
cmp eax, edi
jg 0x100b6e4c
xor ebx, ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
xor edi, edi
fild qword [esp + 0x70]
mov di, word [esi + 0x6608]
cmp edi, ebx
mov dword [esp + 0x38], edi
fsubr st(1)
fstp dword [esp + 0x3c]
fstp st(0)
jbe 0x100b6e4e
fild dword [esp + 0x38]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x18]
fmul qword [0x101308c0]
fild qword [esp + 0x68]
fsub st(1)
fmul qword [ecx]
faddp st(1)
fld st(0)
call fcn.1002fe10
lea edx, [edi - 2]
cmp eax, edx
jg 0x100b6e32
mov ecx, edi
mov edx, dword [esp + 0x34]
imul ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
fisub dword [esp + 0x48]
lea eax, [edx + ecx*2]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*2 + 2]
mov dx, word [eax + edi*2]
fld dword [0x10136e98]
fsub st(1)
mov dword [esp + 0x1c], ecx
xor ecx, ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov cx, word [eax + 2]
xor edx, edx
fmul st(2)
fild dword [esp + 0x1c]
mov dx, word [eax]
mov dword [esp + 0x1c], ecx
fmul st(2)
faddp st(1)
fmul dword [esp + 0x3c]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fmul st(3)
fild dword [esp + 0x1c]
fmul st(3)
faddp st(1)
fld dword [0x10136e98]
fsub dword [esp + 0x3c]
fmulp st(1)
faddp st(1)
call fcn.1002fe10
imul edi, dword [esp + 0x10]
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x14]
add edi, ebx
lea edx, [ecx + edi*4]
mov ecx, dword [esi + 0x6628]
mov word [ecx + edx*2], ax
jmp 0x100b6e34
fstp st(0)
xor edi, edi
inc ebx
mov di, word [esi + 0x6608]
cmp ebx, edi
mov dword [esp + 0x38], edi
jb 0x100b6d5b
jmp 0x100b6e4e
fstp st(0)
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
xor edi, edi
inc eax
mov di, word [esi + 0x6606]
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x28], edi
jb 0x100b6cfa
mov edx, dword [esp + 0x34]
push edx
call fcn.1002e4db
add esp, 4
mov eax, dword [esp + 0x14]
add ebx, 0x10
add eax, 2
mov dword [esp + 0x18], ebx
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x100b6c7e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret