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

Disassembly:
push edi
push ebx
push ebp
sub esp, 0x278
mov edi, dword [esp + 0x288]
mov eax, dword [0x102e9794]
xor eax, esp
mov ebp, dword [esp + 0x28c]
mov ebx, dword [esp + 0x290]
mov dword [esp + 0x274], eax
test edi, edi
je 0x100bf069
test ebp, ebp
je 0x100bf043
test ebx, ebx
jle 0x100bf01d
cmp ebx, 2
jge 0x100bead3
mov dword [ebp], 0
mov ecx, dword [esp + 0x274]
xor ecx, esp
cmp ecx, dword [0x102e9794]
jne 0x100beed7
xor eax, eax
add esp, 0x278
pop ebp
pop ebx
pop edi
ret 0xc
push ebx
push ebp
call fcn.100c7680
add esp, 8
lea ecx, [ebp + ebx*4 - 4]
mov edx, 1
lea eax, [edi + ebx*4 - 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ecx
mov dword [esp], esi
nop dword [eax]
nop dword [eax]
cmp ebx, 9
jg 0x100becc6
cmp eax, edi
jbe 0x100bec63
mov ecx, eax
lea ebx, [edi + 4]
sub ecx, edi
mov dword [esp + 0x54], ebx
lea edx, [ecx + 3]
sar edx, 1
mov dword [esp + 0x4c], eax
shr edx, 0x1e
mov dword [esp + 0x48], ebp
lea esi, [edx + ecx + 3]
mov ecx, eax
xor edx, edx
sar esi, 2
sub ecx, ebx
mov dword [esp + 0x60], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x50], esi
nop dword [eax + eax]
nop dword [eax]
nop dword [eax + eax]
nop dword [eax]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
mov ebp, dword [ecx]
cmp ebx, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
jb 0x100bec32
lea esi, [edx*4]
neg esi
add esi, dword [esp + 0x34]
lea edi, [esi + 4]
mov dword [esp + 0x38], edi
shr edi, 3
test edi, edi
jbe 0x100beedc
xor eax, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x40], esi
mov esi, ebx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x54]
nop dword [eax + eax]
nop dword [eax]
nop word [eax + eax]
mov edi, dword [edx + eax*8]
cmp edi, ebp
jl 0x100bebd5
mov ecx, dword [esp + 0x60]
mov ebp, edi
lea ebx, [esi + eax*8 + 4]
lea ecx, [ecx + eax*8 + 4]
mov edi, dword [edx + eax*8 + 4]
cmp edi, ebp
jl 0x100bebeb
mov ecx, dword [esp + 0x60]
mov ebp, edi
lea ebx, [esi + eax*8 + 8]
lea ecx, [ecx + eax*8 + 8]
add eax, 1
cmp eax, dword [esp + 0x70]
jb 0x100bebc0
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea eax, [eax + eax + 1]
mov edi, dword [esp + 0x38]
sar edi, 1
shr edi, 0x1e
lea edi, [edi + esi + 4]
sar edi, 2
lea esi, [eax - 1]
cmp esi, edi
jae 0x100bec32
mov esi, dword [esp + 0x60]
lea edi, [esi + eax*4 + 4]
mov esi, dword [esi + eax*4]
cmp esi, ebp
jl 0x100bec32
mov ecx, dword [esp + 0x48]
mov ebp, esi
lea ebx, [ecx + eax*4]
lea ecx, [edi - 4]
mov esi, dword [esp + 0x4c]
add edx, 1
mov edi, dword [esp + 0x44]
mov eax, dword [esi]
mov dword [ecx], eax
mov dword [esi], ebp
add esi, 0xfffffffc
mov ebp, dword [ebx]
mov ecx, dword [edi]
mov dword [esp + 0x4c], esi
mov dword [ebx], ecx
mov dword [edi], ebp
add edi, 0xfffffffc
mov dword [esp + 0x44], edi
cmp edx, dword [esp + 0x50]
jb 0x100beb60
mov edx, dword [esp + 0x18]
mov eax, dword [esp + edx*4 + 0x74]
add edx, 0xffffffff
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + edx*4 + 0xf4]
mov edi, dword [esp + edx*4 + 0x174]
mov ebp, dword [esp + edx*4 + 0x1f4]
mov ebx, eax
sub ebx, edi
sar ebx, 2
add ebx, 1
cmp dword [esp + 0x18], 0
jne 0x100beb00
mov ecx, dword [esp + 0x274]
xor ecx, esp
mov esi, dword [esp]
cmp ecx, dword [0x102e9794]
jne 0x100beed7
xor eax, eax
add esp, 0x278
pop ebp
pop ebx
pop edi
ret 0xc
mov edx, dword [ebp]
mov esi, dword [edi + 4]
mov dword [esp + 0x10], edx
mov edx, dword [edi]
mov ecx, edx
cmp edx, esi
jge 0x100bece5
mov ecx, dword [ebp + 4]
mov dword [ebp], ecx
mov esi, dword [edi + 4]
mov ecx, esi
mov dword [edi], esi
cmp edx, esi
jge 0x100becf5
mov ecx, dword [esp + 0x10]
mov dword [ebp + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [edi]
sar ebx, 1
mov esi, dword [edi + ebx*4]
cmp ecx, esi
jle 0x100bed11
mov edx, esi
mov esi, dword [ebp + ebx*4]
mov dword [esp + 0x14], esi
mov esi, dword [ebp]
mov dword [esp + 4], esi
jmp 0x100bed24
mov edx, ecx
mov ecx, esi
mov esi, dword [ebp]
mov dword [esp + 0x14], esi
mov esi, dword [ebp + ebx*4]
mov dword [esp + 4], esi
mov esi, dword [eax]
cmp edx, esi
jle 0x100bed34
mov dword [edi], esi
mov esi, dword [esp + 0x44]
mov esi, dword [esi]
jmp 0x100bed3a
mov dword [edi], edx
mov esi, dword [esp + 0x14]
mov dword [ebp], esi
mov esi, dword [eax]
cmp edx, esi
jg 0x100bed4f
mov edx, esi
mov esi, dword [esp + 0x44]
mov esi, dword [esi]
mov dword [esp + 0x14], esi
cmp edx, ecx
jl 0x100bed62
mov dword [edi + ebx*4], ecx
mov ecx, dword [esp + 4]
mov dword [ebp + ebx*4], ecx
mov dword [eax], edx
jmp 0x100bed77
mov dword [edi + ebx*4], edx
mov edx, dword [esp + 0x14]
mov dword [ebp + ebx*4], edx
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], esi
mov dword [esi], edx
mov edx, eax
mov ecx, dword [edi + ebx*4]
lea ebx, [ebp + 4]
mov dword [esp + 0x20], ecx
lea ecx, [edi + 4]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x60], edi
mov esi, dword [esp + 0x20]
jmp 0x100bede0
mov ebx, dword [ecx]
mov eax, dword [edx]
mov edi, dword [esp + 0x5c]
mov dword [ecx], eax
mov dword [edx], ebx
mov ebx, dword [esp + 0x58]
mov eax, dword [edi]
mov ebp, dword [ebx]
mov dword [edi], ebp
mov dword [ebx], eax
nop dword [eax + eax]
nop dword [eax]
nop dword [eax + eax]
nop dword [eax]
mov ebx, dword [esp + 0x5c]
mov eax, ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x58]
cmp edx, ecx
jbe 0x100beece
mov edi, edx
sub edi, ecx
lea ebp, [edi + 3]
sar ebp, 1
shr ebp, 0x1e
lea ebp, [ebp + edi + 3]
sar ebp, 2
cmp esi, dword [ecx]
jl 0x100bee88
mov dword [esp + 0x24], ecx
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edx
mov ebp, dword [esp + 0x24]
nop dword [eax + eax]
nop dword [eax]
nop dword [eax + eax]
add ecx, 1
mov ebx, dword [esp + 0x68]
lea edx, [ebp + 4]
lea ebx, [edi + ebx + 4]
cmp ecx, dword [esp + 0x6c]
jae 0x100bee63
lea edi, [ecx*4]
lea ebp, [eax + ecx*4]
cmp esi, dword [eax + ecx*4]
jge 0x100bee40
mov dword [esp + 0x5c], ebx
mov ecx, edx
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jbe 0x100beece
mov ebp, edx
sub ebp, ecx
lea eax, [ebp + 3]
sar eax, 1
shr eax, 0x1e
lea ebp, [eax + ebp + 3]
sar ebp, 2
xor eax, eax
cmp esi, dword [edx]
jge 0x100beece
xor edi, edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x30], ecx
nop dword [eax + eax]
neg edi
add eax, 1
lea ecx, [edx - 4]
add edi, ebx
lea ebp, [edi - 4]
cmp eax, dword [esp + 0x6c]
jae 0x100beec4
lea edi, [eax*4]
mov edx, dword [esp + 0x64]
sub edx, edi
cmp esi, dword [edx]
jl 0x100beea0
mov dword [esp + 0x58], ebp
mov edx, ecx
mov ecx, dword [esp + 0x30]
cmp ecx, edx
je 0x100beee6
jmp 0x100bedaa
call fcn.1023c450
mov eax, 1
jmp 0x100bec00
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
add ebx, 0xfffffffc
lea esi, [ecx - 4]
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], ebx
cmp edx, dword [ecx - 4]
mov edx, dword [esp + 0x2c]
jne 0x100bef7b
mov dword [esp + 8], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x60], edi
mov edi, esi
mov edx, dword [esp + 8]
nop dword [eax + eax]
nop dword [eax + eax]
add edx, 1
mov eax, esi
lea ebp, [edx*4]
sub eax, ebp
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0x60]
jbe 0x100bef67
mov ebx, dword [esp + 0x1c]
mov edi, eax
mov ecx, dword [esp + 0x20]
sub ebx, ebp
cmp ecx, dword [eax]
je 0x100bef40
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0xc]
mov esi, eax
sub ecx, edi
sub esi, edx
sar ecx, 2
sar esi, 2
cmp ecx, esi
jge 0x100befd9
cmp edi, dword [esp + 0xc]
je 0x100befce
mov ecx, dword [esp + 0x18]
mov dword [esp + ecx*4 + 0x174], edx
mov edx, dword [esp + 0x58]
mov dword [esp + ecx*4 + 0xf4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + ecx*4 + 0x1f4], edx
mov dword [esp + ecx*4 + 0x78], eax
add ecx, 1
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], ebx
jmp 0x100bec8b
mov edi, edx
mov ebp, dword [esp + 0x58]
jmp 0x100bec8b
cmp edx, eax
je 0x100bf010
mov ecx, dword [esp + 0x18]
mov dword [esp + ecx*4 + 0x1f4], ebp
mov ebp, dword [esp + 0xc]
mov dword [esp + ecx*4 + 0x174], edi
mov edi, edx
mov dword [esp + ecx*4 + 0xf4], ebp
mov dword [esp + ecx*4 + 0x78], ebx
add ecx, 1
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x58]
jmp 0x100bec8b
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], ebx
jmp 0x100bec8b
mov ecx, dword [esp + 0x274]
xor ecx, esp
cmp ecx, dword [0x102e9794]
jne 0x100beed7
mov eax, 0xfffffffa
add esp, 0x278
pop ebp
pop ebx
pop edi
ret 0xc
mov ecx, dword [esp + 0x274]
xor ecx, esp
cmp ecx, dword [0x102e9794]
jne 0x100beed7
mov eax, 0xfffffff8
add esp, 0x278
pop ebp
pop ebx
pop edi
ret 0xc
mov ecx, dword [esp + 0x274]
xor ecx, esp
cmp ecx, dword [0x102e9794]
jne 0x100beed7
jmp 0x100bf058