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

Disassembly:
sub esp, 0x98
cmp dword [ebx + 0x20], 0x20
push ebp
push esi
push edi
jl 0x10159f34
push str.void_vbf_Scanner::createBitImage___const
push str._s:_n_borderHeightE___32
lea eax, [esp + 0x48]
call fcn.100595b0
add esp, 8
push 0x102051a0
lea eax, [esp + 0x44]
push eax
call fcn.1017d044
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
cmp ecx, eax
lea edx, [ecx + ecx + 1]
mov dword [esp + 0x50], edx
lea edx, [eax + eax + 1]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], edx
ja 0x10159f7b
push str.void_vbf_Scanner::createBitImage___const
push str._s:_n_outer_radius___inner_radius
lea eax, [esp + 0x48]
call fcn.100595b0
add esp, 8
push 0x102051a0
lea eax, [esp + 0x44]
push eax
call fcn.1017d044
mov edx, dword [ebx + 0x64]
mov eax, dword [edx + 0x3c]
lea esi, [ebx + 0x64]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x40]
mov ecx, esi
mov dword [esp + 0x60], edi
call eax
fld dword [ebx + 0x84]
mov ecx, dword [ebx + 0x80]
fnstcw word [esp + 0x10]
mov edx, 1
shl edx, cl
mov dword [esp + 0x28], eax
movzx eax, word [esp + 0x10]
mov dword [esp + 0xc], edx
or eax, 0xc00
mov ebp, edi
fidiv dword [esp + 0xc]
xor edx, edx
shl ebp, 0x10
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fmul qword [0x101e94b8]
mov dword [esp + 0xc], eax
fldcw word [esp + 0xc]
mov eax, ebp
fistp qword [esp + 0x40]
mov esi, dword [esp + 0x40]
div esi
fldcw word [esp + 0x10]
xor edx, edx
mov dword [esp + 0x70], esi
mov ecx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
shl eax, 0x10
mov dword [esp + 0xc], eax
div esi
mov edx, dword [esp + 0x50]
cmp ecx, edx
mov dword [esp + 0x68], eax
jbe 0x1015a4d9
cmp eax, edx
jbe 0x1015a4d9
mov edx, ecx
imul edx, esi
cmp edx, ebp
jb 0x1015a032
sub ecx, 1
mov dword [esp + 0x38], ecx
mov edx, eax
imul edx, esi
cmp edx, dword [esp + 0xc]
jb 0x1015a044
sub eax, 1
mov dword [esp + 0x68], eax
mov edx, dword [ebx + 0x1c]
lea ecx, [ecx + edx*2]
mov edx, dword [ebx + 0x20]
lea ebp, [eax + edx*2]
push ebp
mov dword [esp + 0x54], ecx
mov dword [ebx + 0x144], ecx
push ecx
lea esi, [ebx + 0x14c]
xor edx, edx
xor ecx, ecx
mov dword [ebx + 0x148], ebp
call fcn.10049360
lea esi, [ebx + 0x120]
call fcn.1012df90
mov eax, dword [ebx + 0xe0]
mov eax, dword [eax + 0x54]
mov edx, ebp
and dl, 0x1f
neg dl
lea ecx, [ebx + 0xe0]
sbb edx, edx
neg edx
shr ebp, 5
add edx, ebp
push edx
mov edx, dword [esp + 0x54]
push edx
call eax
lea esi, [ebx + 0xc4]
xor edi, edi
call fcn.10082bf0
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0xc8]
mov ebp, dword [esp + 0x14]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x1c]
lea ebp, [ebp + ebp + 1]
lea edi, [ebx + 0xac]
mov dword [esp + 0x3c], eax
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x38]
mov edx, dword [edi]
mov edx, dword [edx + 0x54]
mov dword [esp + 0x5c], eax
lea eax, [ecx + ebp]
lea ecx, [ebp + 1]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x18], eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
mov esi, dword [ebx + 0x94]
mov ecx, edi
call edx
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x124]
mov dword [esp + 0x54], eax
mov eax, ebp
imul eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
add ebp, 1
imul eax, eax
imul ebp, dword [esp + 0x10]
xor edx, edx
cmp ebp, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x7c], eax
jbe 0x1015a14a
mov ecx, ebp
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edx, ebp
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x68]
mov ebp, edx
sub ebp, dword [esp + 0x10]
xor ecx, ecx
add eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
je 0x1015a4cf
lea ebx, [ebx]
cmp ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
jae 0x1015a2d8
mov ecx, dword [esp + 0x58]
movzx edi, cx
mov eax, ecx
mov ecx, 0x10000
sub ecx, edi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x70]
add dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x60]
shr eax, 0x10
imul eax, ecx
add eax, dword [ebx + 0x4c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], eax
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], eax
xor eax, eax
lea edi, [esi + edx*4]
add ecx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
add eax, 1
add edx, eax
add ebp, eax
cmp dword [esp + 0x60], 0
mov dword [esp + 0x18], 0
jbe 0x1015a23e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], ecx
jmp 0x1015a204
mov ecx, dword [esp + 0xc]
movzx edi, byte [ecx + eax]
movzx eax, byte [eax]
imul edi, dword [esp + 0x34]
imul eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add edi, eax
mov eax, dword [esp + 0x54]
shr edi, 0xa
mov word [eax + ecx*2], di
mov eax, dword [esp + 0x24]
add ecx, 1
add eax, 1
cmp ecx, dword [esp + 0x60]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jb 0x1015a200
mov eax, dword [esp + 0x38]
test eax, eax
jbe 0x1015a2ae
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
mov edi, eax
movzx eax, ax
shr edi, 0x10
mov ecx, 0x10000
sub ecx, eax
mov eax, dword [esp + 0x54]
movzx eax, word [eax + edi*2]
imul ecx, eax
mov eax, dword [esp + 0x54]
movzx eax, word [eax + edi*2 + 2]
movzx edi, word [esp + 0x1c]
imul eax, edi
add ecx, eax
mov eax, dword [esp + 0x20]
shr ecx, 0x16
movzx ecx, cl
add eax, ecx
mov ecx, dword [esi + ebp*4]
add ecx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
add dword [esp + 0x1c], eax
mov dword [esi + edx*4], ecx
add edx, 1
add ebp, 1
sub dword [esp + 0x18], 1
jne 0x1015a250
cmp dword [esp + 0x14], 0
jbe 0x1015a2f1
mov eax, dword [esp + 0x14]
lea esp, [esp]
mov ecx, dword [esi + ebp*4]
add ecx, dword [esp + 0x20]
add edx, 1
mov dword [esi + edx*4 - 4], ecx
add ebp, 1
sub eax, 1
jne 0x1015a2c0
jmp 0x1015a2f1
test eax, eax
jbe 0x1015a2f1
lea esp, [esp]
mov ecx, dword [esi + ebp*4]
mov dword [esi + edx*4], ecx
add edx, 1
add ebp, 1
sub eax, 1
jne 0x1015a2e0
mov edi, dword [esp + 0x74]
cmp edx, edi
sbb eax, eax
and edx, eax
mov eax, dword [esp + 0x14]
cmp ebp, edi
sbb ecx, ecx
and ebp, ecx
cmp dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0xc], ebp
jb 0x1015a4ba
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x4c]
lea eax, [eax + eax + 1]
imul ecx, eax
lea edx, [eax + ebp]
add ecx, ebp
cmp ecx, edi
mov dword [esp + 0x84], edx
sbb edx, edx
not edx
and edx, edi
sub ecx, edx
mov edx, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x64]
mov dword [esp + 0x80], ebp
imul eax, dword [esp + 0x10]
sub eax, edx
add eax, ebp
add eax, dword [esp + 0x14]
cmp eax, edi
sbb ebp, ebp
not ebp
and ebp, edi
sub eax, ebp
lea ebp, [edx + edx + 1]
lea edx, [eax + ebp]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x10]
imul edx, ebp
add edx, eax
cmp edx, edi
sbb ebp, ebp
not ebp
and ebp, edi
mov edi, dword [esp + 0x64]
lea edi, [edi + edi + 1]
sub edx, ebp
add edi, edx
mov dword [esp + 0x9c], edi
mov edi, dword [esp + 0x4c]
add edi, dword [esp + 0x10]
cmp edi, dword [esp + 0x74]
mov dword [esp + 0x4c], edi
jne 0x1015a3bb
mov dword [esp + 0x4c], 0
xor edi, edi
cmp dword [esp + 0x38], edi
jbe 0x1015a495
mov ebp, dword [esp + 0x80]
lea ecx, [esi + ecx*4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x8c]
lea ecx, [esi + ecx*4]
lea ebp, [esi + ebp*4]
lea eax, [esi + eax*4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x6c], eax
lea eax, [esi + ecx*4]
lea ecx, [esi + edx*4]
mov edx, dword [esp + 0x9c]
lea ebp, [esi + ebp*4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ecx
lea eax, [esi + edx*4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x24]
sub edx, dword [ecx]
mov ecx, dword [esp + 0x34]
sub edx, dword [ecx]
mov ecx, dword [esp + 0x18]
add edx, dword [ecx]
mov ecx, dword [eax]
mov ebp, dword [esp + 0x1c]
imul edx, dword [esp + 0x7c]
sub ecx, dword [ebp]
mov ebp, dword [esp + 0x20]
sub ecx, dword [ebp]
mov ebp, dword [esp + 0x6c]
add ecx, dword [ebp]
imul ecx, dword [esp + 0x78]
cmp edx, ecx
mov ecx, dword [esp + 0x5c]
sbb edx, edx
and edx, dword [esp + 0x3c]
add edi, 1
or dword [ecx + edi*4 - 4], edx
mov edx, 4
add dword [esp + 0x20], edx
add dword [esp + 0x1c], edx
add dword [esp + 0x6c], edx
add dword [esp + 0x2c], edx
add dword [esp + 0x34], edx
add dword [esp + 0x24], edx
add dword [esp + 0x18], edx
add eax, edx
cmp edi, dword [esp + 0x38]
jb 0x1015a41e
jmp 0x1015a499
mov ecx, dword [esp + 0x5c]
shl dword [esp + 0x3c], 1
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0xc]
jne 0x1015a4ba
mov eax, dword [esp + 0x50]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], 1
mov ecx, dword [esp + 0x30]
add ecx, 1
cmp ecx, dword [esp + 0x40]
mov dword [esp + 0x30], ecx
jb 0x1015a170
pop edi
pop esi
pop ebp
add esp, 0x98
ret
push str.void_vbf_Scanner::createBitImage___const
push str._s:_n_scaled_image_is_too_small
lea eax, [esp + 0x48]
call fcn.100595b0
add esp, 8
push 0x102051a0
lea edx, [esp + 0x44]
push edx
call fcn.1017d044
int3