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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019fd0b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
push ebx
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x64], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov ecx, 0x10223ae0
call fcn.10062a30
test al, al
je 0x101678e4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, 0x10223ae0
call fcn.10062a30
test al, al
je 0x101678e4
mov eax, dword [ebx + 8]
cmp eax, 0x20
je 0x10167165
cmp eax, 0x10
je 0x10167165
push eax
push str.float_vfh_BitImgRelator::sim__const_evc_Cue_cue1A__const_evc_Cue_cue2A___const
push str._s:_npatch_width__i_is_not_supported
lea eax, [esp + 0x60]
call fcn.100595b0
add esp, 0xc
push 0x102051a0
lea eax, [esp + 0x58]
push eax
call fcn.1017d044
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebx + 0x94]
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x94]
mov dword [esp + 0x38], ecx
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
push ecx
or ecx, 0xffffffff
mov eax, esp
mov dword [esp + 0x20], esp
call fcn.10065e40
mov dword [esp + 0x23c], 0
mov eax, dword [edi + 0x48]
push 3
push eax
lea ecx, [esp + 0x128]
push esi
push ecx
call fcn.1013efa0
add esp, 0x10
mov byte [esp + 0x23c], 1
mov edi, eax
mov ecx, esi
mov byte [esp + 0x23c], 2
call fcn.1000d720
lea ecx, [esp + 0x224]
mov dword [esp + 0x238], 0xffffffff
call fcn.10019760
xor ecx, ecx
lea eax, [esp + 0x14]
call fcn.10065e40
mov ecx, dword [ebx + 0x20]
cmp ecx, 0xffffffff
je 0x1016720c
call fcn.10065e50
jmp 0x10167214
mov dword [esp + 0x14], 0xffffffff
push ecx
lea ecx, [esp + 0x18]
mov eax, esp
mov dword [esp + 0x20], esp
call fcn.10065e30
lea edx, [esp + 0x7c]
push edx
mov edi, esi
call fcn.1000faa0
mov dword [esp + 0x238], 3
mov edi, dword [esp + 0x88]
lea ecx, [ebx + 0x28]
call fcn.100529d0
cmp dword [esp + 0x88], 0
mov dword [esp + 0x14], 0
jle 0x101672c8
mov dword [esp + 0x18], 0
jmp 0x10167270
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
mov ecx, dword [eax + ecx*4]
lea eax, [ebx + 0xcc]
call fcn.1000ea10
mov eax, dword [eax + 4]
lea ecx, [eax + 0x10]
lea eax, [esp + 0x54]
call fcn.10009a30
mov esi, dword [ebx + 0x2c]
add esi, dword [esp + 0x18]
mov edi, eax
call fcn.100502e0
lea ecx, [esp + 0x54]
call fcn.10048a00
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 0xc
add eax, 1
cmp eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
jl 0x10167270
mov ecx, dword [ebx + 0x30]
mov esi, dword [esp + 0x38]
mov eax, ecx
cdq
idiv esi
mov dword [esp + 0x34], eax
imul eax, esi
cmp eax, ecx
mov dword [esp + 0x1c], eax
je 0x10167308
push str.float_vfh_BitImgRelator::sim__const_evc_Cue_cue1A__const_evc_Cue_cue2A___const
push str._s:_ncols__rows_mismatch
lea eax, [esp + 0x5c]
call fcn.100595b0
add esp, 8
push 0x102051a0
lea edx, [esp + 0x58]
push edx
call fcn.1017d044
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
lea ecx, [eax + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
call edx
mov ecx, dword [ebx + 0xc]
add ecx, dword [ebx + 8]
sar ecx, 1
sub esi, ecx
sub esi, 1
sub eax, ecx
mov dword [esp + 0x20], esi
lea edx, [ecx + 1]
sub eax, 1
xor esi, esi
cmp dword [ebx + 0x30], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], eax
jle 0x1016739f
xor edi, edi
mov eax, dword [ebx + 0x2c]
mov edx, dword [esp + 0x20]
cmp edx, dword [edi + eax + 4]
lea ecx, [edi + eax + 4]
lea eax, [esp + 0x20]
jl 0x1016735d
mov eax, ecx
mov edx, dword [esp + 0x24]
cmp edx, dword [eax]
jle 0x10167369
lea eax, [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [esp + 0x30]
mov dword [ecx], eax
mov ecx, dword [ebx + 0x2c]
cmp edx, dword [edi + ecx + 8]
lea ecx, [edi + ecx + 8]
lea eax, [esp + 0x30]
jl 0x10167384
mov eax, ecx
mov edx, dword [esp + 0x48]
cmp edx, dword [eax]
jle 0x10167390
lea eax, [esp + 0x48]
mov eax, dword [eax]
add esi, 1
mov dword [ecx], eax
add edi, 0xc
cmp esi, dword [ebx + 0x30]
jl 0x10167346
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x23c], 0xffffffff
call fcn.10001b50
mov edi, dword [ebx + 0x30]
lea ecx, [ebx + 0x4c]
call fcn.100529d0
mov edx, dword [ebx + 0x30]
push 0
push edx
lea esi, [ebx + 0x78]
call fcn.10005ca0
cmp dword [ebx + 0x30], 0
mov dword [esp + 0x20], 0
jle 0x101674cc
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 0x2c]
mov edx, dword [esp + 0x2c]
mov esi, dword [eax + ecx + 4]
mov edi, dword [eax + ecx + 8]
add eax, ecx
sub esi, edx
sub edi, edx
cmp dword [ebx + 8], 0x20
jne 0x10167417
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x9c]
push ecx
push edx
mov eax, edi
mov ecx, esi
call fcn.10165d70
jmp 0x1016742b
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x9c]
push eax
push edi
push ecx
mov eax, esi
call fcn.101663a0
xor eax, eax
cmp dword [ebx + 8], 0x20
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
jne 0x1016746b
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xa4]
push edx
push eax
push eax
mov eax, dword [esp + 0x3c]
mov ecx, edi
sub ecx, eax
push ecx
mov edx, esi
sub edx, eax
mov eax, dword [ebp + 0xc]
push edx
push eax
call fcn.101662b0
jmp 0x10167496
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xa4]
push ecx
push eax
push eax
mov eax, dword [esp + 0x3c]
mov edx, edi
sub edx, eax
push edx
mov edx, dword [ebp + 0xc]
mov ecx, esi
sub ecx, eax
push ecx
push edx
call fcn.10166590
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add eax, ecx
sub edx, esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
sub edx, edi
mov dword [eax + 8], edx
mov eax, dword [esp + 0x20]
add eax, 1
add ecx, 0xc
cmp eax, dword [ebx + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jl 0x101673e5
lea edx, [ebx + 0x70]
xor eax, eax
mov dword [esp + 0x20], edx
call fcn.1005f330
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x54], eax
je 0x10167508
push str.float_vfh_BitImgRelator::sim__const_evc_Cue_cue1A__const_evc_Cue_cue2A___const
push str._s_ndispArrL.size_____rowsL__colsL
lea eax, [esp + 0x5c]
call fcn.100595b0
add esp, 8
push 0x102051a0
lea ecx, [esp + 0x58]
push ecx
call fcn.1017d044
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x34]
mov edx, eax
imul edx, eax
mov dword [esp + 0x50], edx
xor edx, edx
cmp ecx, edx
mov dword [esp + 0x14], 1
jle 0x10167656
mov eax, dword [esp + 0x38]
lea esi, [eax - 1]
mov dword [esp + 0x3c], edx
lea edx, [eax*4]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x68], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 4
mov dword [esp + 0x28], ecx
jmp 0x10167560
cmp dword [esp + 0x24], 0
jle 0x10167635
fild dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
fstp qword [esp + 0x54]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ecx
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x18]
lea esi, [ecx + eax + 0xc]
add ecx, eax
lea eax, [esp + 0x6c]
call fcn.10048dc0
mov ecx, eax
call fcn.100504a0
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 5
jp 0x101675b7
mov al, 1
jmp 0x101675b9
xor al, al
lea ecx, [esp + 0x6c]
call fcn.100502a0
test al, al
je 0x10167618
mov eax, dword [ebx + 0x7c]
mov ecx, dword [edi + eax - 4]
test ecx, ecx
jne 0x101675f7
mov ecx, dword [edi + eax]
test ecx, ecx
jne 0x101675f1
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov dword [edi + eax - 4], edx
mov eax, dword [ebx + 0x7c]
add ecx, 1
mov dword [esp + 0x14], ecx
mov dword [edi + eax], edx
jmp 0x10167618
mov dword [edi + eax - 4], ecx
jmp 0x10167618
mov edx, dword [edi + eax]
test edx, edx
jne 0x10167603
mov dword [edi + eax], ecx
jmp 0x10167618
mov eax, dword [esp + 0x20]
mov ebx, ecx
mov edi, edx
call fcn.1005fc50
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
add ecx, 0xc
add edi, 4
sub dword [esp + 0x2c], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], edi
jne 0x1016758b
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x68]
add dword [esp + 0x3c], edx
add dword [esp + 0x44], eax
sub dword [esp + 0x28], 1
jne 0x10167560
mov ecx, dword [esp + 0x34]
xor edx, edx
lea esi, [ecx - 1]
cmp esi, edx
jle 0x101677ae
mov ecx, dword [esp + 0x38]
lea eax, [ecx + ecx*2]
add eax, eax
add eax, eax
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], esi
lea esp, [esp]
cmp dword [esp + 0x38], 0
jle 0x10167785
mov ecx, dword [esp + 0x28]
fild dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
fstp qword [esp + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jmp 0x101676d0
mov eax, dword [ebx + 0x50]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
lea esi, [edx + eax]
add ecx, eax
lea eax, [esp + 0x6c]
call fcn.10048dc0
mov ecx, eax
call fcn.100504a0
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 5
jp 0x101676ff
mov al, 1
jmp 0x10167701
xor al, al
lea ecx, [esp + 0x6c]
call fcn.100502a0
test al, al
je 0x10167761
mov eax, dword [ebx + 0x7c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + eax]
test ecx, ecx
jne 0x10167740
mov ecx, dword [edi + eax]
test ecx, ecx
jne 0x1016773b
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov dword [esi + eax], edx
mov eax, dword [ebx + 0x7c]
add ecx, 1
mov dword [esp + 0x14], ecx
mov dword [edi + eax], edx
jmp 0x10167761
mov dword [esi + eax], ecx
jmp 0x10167761
mov edx, dword [edi + eax]
test edx, edx
jne 0x1016774c
mov dword [edi + eax], ecx
jmp 0x10167761
mov eax, dword [esp + 0x20]
mov ebx, ecx
mov edi, edx
call fcn.1005fc50
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x64]
add dword [esp + 0x18], 4
mov eax, 0xc
add dword [esp + 0x44], eax
add dword [esp + 0x3c], eax
add edi, 4
sub dword [esp + 0x40], 1
mov dword [esp + 0x4c], edi
jne 0x101676d0
mov eax, dword [esp + 0x68]
add dword [esp + 0x28], eax
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
add dword [esp + 0x30], eax
add dword [esp + 0x24], eax
sub dword [esp + 0x1c], 1
jne 0x10167690
mov ecx, dword [esp + 0x34]
xor edx, edx
cmp ecx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], edx
jle 0x10167837
mov dword [esp + 0x50], ecx
mov edi, edi
cmp dword [esp + 0x38], 0
jle 0x10167830
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x7c]
mov edx, dword [esp + 0x38]
lea esi, [eax + eax*2]
add esi, esi
add esi, esi
lea edi, [ecx + eax*4]
add eax, edx
mov dword [esp + 0x1c], eax
cmp dword [edi], 0
jle 0x10167825
mov eax, dword [ebx + 0x50]
lea ecx, [eax + esi]
mov eax, dword [ecx + 8]
test eax, eax
jg 0x101677f6
neg eax
mov ecx, dword [ecx + 4]
test ecx, ecx
mov dword [esp + 0x4c], eax
jg 0x10167803
neg ecx
cmp ecx, eax
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x40]
jg 0x10167813
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax]
jle 0x1016781f
lea eax, [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
add edi, 4
add esi, 0xc
sub edx, 1
jne 0x101677e2
sub dword [esp + 0x50], 1
jne 0x101677c0
mov eax, dword [esp + 0x20]
push 1
mov ebx, eax
call fcn.1005f940
mov esi, dword [esp + 0x64]
mov ecx, dword [esi + 0x80]
xor ebx, ebx
or edi, 0xffffffff
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], ebx
jle 0x10167899
mov edx, dword [esi + 0x7c]
add ecx, edi
mov dword [esp + 0x1c], ecx
cmp eax, dword [esp + 0x1c]
je 0x10167873
mov ecx, dword [edx]
cmp ecx, dword [edx + 4]
je 0x10167882
mov ecx, eax
sub ecx, edi
cmp ecx, 2
mov edi, eax
jle 0x10167882
lea ebx, [ebx + ecx - 2]
cmp dword [edx], 0
je 0x10167895
add eax, 1
add edx, 4
cmp eax, dword [esi + 0x80]
jl 0x10167866
mov dword [esp + 0x20], ebx
fild dword [esp + 0x20]
fidiv dword [esi + 0x54]
fstp dword [esp + 0x1c]
fld1
fstp dword [esp + 0x40]
fld dword [esp + 0x1c]
fcomp qword [0x101ac268]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x40]
je 0x101678c3
lea eax, [esp + 0x1c]
add dword [esi + 0x170], 1
fld dword [eax]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.float_vfh_BitImgRelator::sim__const_evc_Cue_cue1A__const_evc_Cue_cue2A___const
push str._s:_cues_must_be_vfh_BitImgCue
lea eax, [esp + 0x5c]
call fcn.100595b0
add esp, 8
push 0x102051a0
lea edx, [esp + 0x58]
push edx
call fcn.1017d044
int3