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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
push edi
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x5c]
cmp eax, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
ja 0x100bca8f
jb 0x100bc543
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x58]
cmp ecx, eax
jae 0x100bca8f
cmp dword [esi + 0xd8], ebx
jne 0x100bc6d7
cmp dword [esi + 0xb8], ebx
jne 0x100bc6d7
cmp word [esi + 0x50], 1
jne 0x100bc5ed
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x18]
push 7
push edx
push eax
call dword [esi]
add esp, 0xc
cmp eax, 7
jne 0x100bca8f
movzx dx, byte [esp + 0x18]
xor ecx, ecx
mov word [esi + 0xbc], dx
mov cx, word [esi + 0x30]
sub ecx, eax
lea eax, [esp + 0x19]
push eax
mov dword [esi + 0xb8], ecx
call fcn.100be4e0
movsx ecx, ax
lea edx, [esp + 0x1f]
mov dword [esi + 0xc0], ecx
push edx
call fcn.100be4e0
movsx eax, ax
lea ecx, [esp + 0x25]
mov dword [esi + 0xe0], eax
push ecx
call fcn.100be4e0
mov edx, dword [esi + 0xe0]
add esp, 0xc
movsx eax, ax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], edx
jmp 0x100bc6cd
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x28]
push 0xe
push eax
push ecx
call dword [esi]
add esp, 0xc
cmp eax, 0xe
jne 0x100bca8f
movzx cx, byte [esp + 0x29]
xor edx, edx
mov word [esi + 0xbe], cx
mov dx, word [esi + 0x30]
sub edx, eax
movzx ax, byte [esp + 0x28]
mov dword [esi + 0xb8], edx
lea edx, [esp + 0x2a]
push edx
mov word [esi + 0xbc], ax
call fcn.100be4e0
movsx eax, ax
lea ecx, [esp + 0x30]
mov dword [esi + 0xc0], eax
push ecx
call fcn.100be4e0
movsx edx, ax
lea eax, [esp + 0x36]
mov dword [esi + 0xc4], edx
push eax
call fcn.100be4e0
movsx ecx, ax
lea edx, [esp + 0x3c]
mov dword [esi + 0xe0], ecx
push edx
call fcn.100be4e0
movsx eax, ax
lea ecx, [esp + 0x42]
mov dword [esi + 0xe8], eax
push ecx
call fcn.100be4e0
movsx edx, ax
lea eax, [esp + 0x48]
mov dword [esi + 0xdc], edx
push eax
call fcn.100be4e0
mov ecx, dword [esi + 0xdc]
mov edx, dword [esi + 0xe0]
movsx eax, ax
mov dword [esi + 0xe4], eax
mov dword [esi + 0xcc], eax
mov eax, dword [esi + 0xe8]
add esp, 0x18
mov dword [esi + 0xc8], ecx
mov dword [esi + 0xd0], edx
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], 2
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
cmp edi, ebx
ja 0x100bc6eb
cmp ebp, ebx
jbe 0x100bc7b7
cmp dword [esi + 0xd8], ebx
jbe 0x100bc7af
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x5c]
cmp ecx, eax
ja 0x100bc7af
jb 0x100bc715
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x58]
cmp edx, eax
jae 0x100bc7af
mov edx, dword [esp + 0x48]
cmp edx, ebx
je 0x100bc761
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0x50]
cmp eax, ebx
jbe 0x100bc754
imul eax, dword [esi + 0xd8]
mov ebx, ecx
add edx, 2
sub ebx, eax
inc ecx
mov ax, word [esi + ebx*4 + 0xd8]
mov word [edx - 2], ax
xor eax, eax
mov ax, word [esi + 0x50]
cmp ecx, eax
jb 0x100bc729
mov edx, dword [esp + 0x48]
xor ebx, ebx
xor ecx, ecx
mov cx, word [esi + 0x50]
lea edx, [edx + ecx*2]
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add ebp, 0xffffffff
mov eax, 1
adc edi, 0xffffffff
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x78]
adc edx, ebx
add ecx, eax
mov dword [esp + 0x24], edx
mov dword [esi + 0x78], ecx
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0xd8]
adc edx, ebx
dec ecx
cmp edi, ebx
mov dword [esi + 0x7c], edx
mov dword [esi + 0xd8], ecx
ja 0x100bc6eb
jb 0x100bc7af
cmp ebp, ebx
ja 0x100bc6eb
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
or ebp, edi
je 0x100bca8f
cmp dword [esi + 0xd8], ebx
jne 0x100bca71
cmp dword [esi + 0xb8], ebx
je 0x100bca71
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x14]
push 1
push eax
push ecx
call dword [esi]
add esp, 0xc
cmp eax, 1
jne 0x100bca8f
mov ecx, dword [esp + 0x14]
mov ebp, dword [esi + 0xb8]
mov eax, ecx
dec ebp
and eax, 0xff
mov dword [esi + 0xb8], ebp
mov ebp, eax
shr ebp, 4
test cl, 0x80
mov edi, ebp
je 0x100bc817
or edi, 0xfffffff0
and eax, 0xf
test cl, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
je 0x100bc82e
or eax, 0xfffffff0
mov dword [esp + 0x3c], eax
cmp word [esi + 0x50], 1
jne 0x100bc94d
mov ecx, dword [esi + 0xe0]
xor edx, edx
mov dx, word [esi + 0xbc]
mov ebx, dword [esi + 0xc0]
shl edx, 2
mov eax, dword [edx + 0x10112634]
imul ecx, dword [edx + 0x10112618]
imul eax, dword [esi + 0xdc]
add ecx, eax
mov eax, ebx
imul eax, edi
sar ecx, 8
add ecx, eax
cmp ecx, 0x7fff
jg 0x100bc888
cmp ecx, 0xffff8000
jge 0x100bc88d
mov ecx, 0xffff8000
jmp 0x100bc88d
mov ecx, 0x7fff
mov eax, dword [ebp*4 + 0x101125d8]
imul eax, ebx
sar eax, 8
mov ebx, 0x10
mov dword [esi + 0xc0], eax
cmp eax, ebx
jge 0x100bc8af
mov dword [esi + 0xc0], ebx
mov eax, dword [esi + 0xe0]
mov dword [esi + 0xe0], ecx
mov dword [esi + 0xdc], eax
mov eax, ecx
imul eax, dword [edx + 0x10112618]
mov edx, dword [edx + 0x10112634]
mov edi, dword [esi + 0xc0]
imul edx, dword [esi + 0xdc]
add eax, edx
mov edx, edi
imul edx, dword [esp + 0x3c]
sar eax, 8
add eax, edx
cmp eax, 0x7fff
jg 0x100bc900
cmp eax, 0xffff8000
jge 0x100bc905
mov eax, 0xffff8000
jmp 0x100bc905
mov eax, 0x7fff
mov edx, dword [esp + 0x10]
mov edx, dword [edx*4 + 0x101125d8]
imul edx, edi
sar edx, 8
cmp edx, ebx
mov dword [esi + 0xc0], edx
jge 0x100bc926
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xdc], ecx
mov dword [esi + 0xe0], eax
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], 2
jmp 0x100bca6f
xor eax, eax
mov edx, dword [esi + 0xe0]
mov ax, word [esi + 0xbc]
mov ebx, dword [esi + 0xc0]
shl eax, 2
mov ecx, dword [eax + 0x10112634]
mov eax, dword [eax + 0x10112618]
imul ecx, dword [esi + 0xdc]
imul eax, edx
add ecx, eax
mov eax, ebx
imul eax, edi
sar ecx, 8
add ecx, eax
cmp ecx, 0x7fff
jg 0x100bc99e
cmp ecx, 0xffff8000
jge 0x100bc9a3
mov ecx, 0xffff8000
jmp 0x100bc9a3
mov ecx, 0x7fff
mov eax, dword [ebp*4 + 0x101125d8]
imul eax, ebx
sar eax, 8
cmp eax, 0x10
mov dword [esi + 0xc0], eax
jge 0x100bc9c5
mov dword [esi + 0xc0], 0x10
mov dword [esi + 0xdc], edx
xor edx, edx
mov dx, word [esi + 0xbe]
mov ebx, dword [esi + 0xe8]
shl edx, 2
mov dword [esi + 0xe0], ecx
mov edi, dword [esi + 0xc4]
mov eax, dword [edx + 0x10112634]
mov edx, dword [edx + 0x10112618]
imul eax, dword [esi + 0xe4]
imul edx, ebx
add eax, edx
mov edx, edi
imul edx, dword [esp + 0x3c]
sar eax, 8
add eax, edx
cmp eax, 0x7fff
jg 0x100bca22
cmp eax, 0xffff8000
jge 0x100bca27
mov eax, 0xffff8000
jmp 0x100bca27
mov eax, 0x7fff
mov edx, dword [esp + 0x10]
mov edx, dword [edx*4 + 0x101125d8]
imul edx, edi
sar edx, 8
cmp edx, 0x10
mov dword [esi + 0xc4], edx
jge 0x100bca4d
mov dword [esi + 0xc4], 0x10
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], eax
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], 1
xor ebx, ebx
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x5c]
cmp eax, ecx
jb 0x100bc543
ja 0x100bca8f
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x58]
cmp ecx, eax
jb 0x100bc543
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret