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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
xor edx, edx
mov eax, dword [esi]
pop ecx
cmp eax, ecx
mov dword [ebp - 0x20], edx
je 0x1011bd7
cmp eax, 6
je 0x1011bd7
cmp eax, 2
jne 0x1011bd2
cmp dword [0x103a884], edx
je 0x1011bd7
mov dword [ebp - 0xc], edx
jmp 0x1011bda
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], edx
je 0x1011be7
cmp dword [ebp - 0xc], edx
mov dword [ebp - 4], edx
jne 0x1011bee
mov dword [ebp - 4], 2
mov ebx, dword [esi + 0xba]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 8], ebx
imul ebx, ebx, 0x3e
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, edx
sub eax, ecx
mov ecx, dword [esi + 0xaa]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + ebx + 0x1c]
add eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xbe]
mov dword [ebp - 0x28], eax
imul eax, eax, 0x3e
mov edi, dword [eax + ecx + 0x1c]
mov dword [ebp - 0x24], eax
add edi, dword [eax + ecx + 0x24]
add eax, ecx
add edi, dword [ebp + 0xc]
sub edi, edx
add edi, dword [esi + 0x14]
and word [esi + 0x98], 0xfffc
xor edx, edx
cmp dword [ebp + 8], edx
jle 0x1011ce8
cmp dword [ebp - 0x20], edx
jne 0x1011c88
push edx
push esi
call fcn.01025919
push eax
push 1
push esi
call fcn.01025919
push eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [esi + 0xaa]
push esi
push 0
push dword [eax + ebx + 0x10]
call fcn.0100d142
xor edx, edx
jmp 0x1011c91
xor eax, eax
mov dword [ebp + 0x10], 0xa4
cmp eax, edx
jne 0x1011cc3
cmp dword [ebp + 0x10], 0xa4
je 0x1011ca8
push 2
push dword [ebp + 0x10]
call fcn.0102498f
mov ecx, dword [ebp + 8]
push 1
sub dword [ebp - 0x14], ecx
pop eax
or word [esi + 0x98], ax
sub edi, ecx
and dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
jmp 0x1011c4d
push edx
push 1
push edx
push eax
push esi
call fcn.01010bb6
mov ebx, eax
mov dword [ebp - 8], eax
imul ebx, ebx, 0x3e
mov eax, dword [esi + 0xaa]
mov eax, dword [eax + ebx + 0x24]
sub dword [ebp + 8], eax
jmp 0x1011c4d
cmp edi, edx
jl 0x1011cf6
cmp dword [ebp - 4], 1
jne 0x1011de5
cmp dword [ebp - 4], 1
jne 0x1011d07
xor eax, eax
mov dword [ebp + 0x10], 0xa4
jmp 0x1011d33
push edx
push esi
call fcn.01025919
push eax
push 1
push esi
call fcn.01025919
mov ecx, dword [ebp - 0x24]
push eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [esi + 0xaa]
push esi
push 1
push dword [eax + ecx + 0x10]
call fcn.0100d142
xor edx, edx
cmp eax, edx
jne 0x1011dc2
cmp dword [ebp + 0x10], 0xa4
je 0x1011d50
push 2
push dword [ebp + 0x10]
call fcn.0102498f
xor edx, edx
cmp dword [ebp - 4], edx
jne 0x1011d69
sub dword [ebp + 8], edi
mov dword [ebp - 0x2c], edi
xor edi, edi
mov dword [ebp - 4], 1
jmp 0x1011c4d
push 1
pop eax
cmp dword [ebp - 4], eax
jne 0x1011d83
cmp dword [ebp - 0x10], edx
jne 0x1011d7c
mov edi, dword [ebp - 0x2c]
add dword [ebp + 8], edi
mov dword [ebp - 4], 2
cmp dword [ebp - 0x10], edx
jne 0x1011da4
cmp dword [ebp - 0x18], edx
jne 0x1011da4
cmp dword [ebp - 0xc], edx
je 0x1011da4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
add edi, eax
jmp 0x1011c4d
or byte [esi + 0x98], 2
cmp dword [ebp - 0x10], edx
jne 0x1011de5
cmp dword [ebp - 0xc], edx
je 0x1011de5
sub dword [ebp + 8], edi
sub dword [ebp - 0x14], edi
xor edi, edi
jmp 0x1011c4d
push edx
push edx
push edx
push eax
push esi
call fcn.01010bb6
mov dword [ebp - 0x28], eax
imul eax, eax, 0x3e
nop
mov ecx, dword [esi + 0xaa]
mov dword [ebp - 0x24], eax
add edi, dword [ecx + eax + 0x24]
jmp 0x1011c4d
cmp dword [esi], 3
jne 0x1011df7
mov eax, dword [ebp - 0x1c]
add eax, edi
test eax, eax
jl 0x1011fbe
cmp dword [ebp - 0x18], edx
je 0x1011e09
mov eax, dword [ebp - 0x1c]
push 0xfffffffffffffffe
cdq
pop ecx
idiv ecx
add edi, eax
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0xaa]
imul eax, eax, 0x3e
mov eax, dword [eax + ecx + 0x24]
mov ecx, dword [ebp + 8]
add eax, ecx
cmp eax, edx
jge 0x1011e54
mov ecx, dword [esi + 0xba]
mov ebx, eax
push ecx
push esi
mov dword [ebp + 8], ebx
call fcn.01010e84
mov ecx, dword [esi + 0xba]
mov edx, dword [esi + 0xaa]
mov eax, ecx
mov dword [ebp - 8], ecx
imul eax, eax, 0x3e
mov eax, dword [eax + edx + 0x24]
add eax, ebx
test eax, eax
jl 0x1011e28
xor edx, edx
mov ecx, dword [ebp - 0x28]
mov ebx, dword [esi + 0xaa]
imul ecx, ecx, 0x3e
mov eax, edi
sub eax, dword [ecx + ebx + 0x24]
cmp eax, edx
jle 0x1011ea2
mov ecx, dword [esi + 0xbe]
jmp 0x1011e74
xor edx, edx
cmp dword [esi + 0xba], ecx
je 0x1011ea2
push ecx
push esi
mov edi, eax
call fcn.01010e84
mov ecx, dword [esi + 0xbe]
mov ebx, dword [esi + 0xaa]
mov edx, ecx
mov eax, edi
imul edx, edx, 0x3e
sub eax, dword [edx + ebx + 0x24]
test eax, eax
jg 0x1011e72
xor edx, edx
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0xba]
sub ebx, dword [esi + 0x10]
mov dword [esi + 0x9e], edx
mov edx, dword [ebp + 8]
cmp ecx, 0xffffffff
mov dword [ebp - 0x24], ebx
mov dword [ebp + 0xc], ecx
je 0x1011f40
jmp 0x1011ec7
mov edx, dword [ebp - 0x28]
imul ecx, ecx, 0x3e
mov eax, dword [esi + 0xaa]
mov dword [eax + ecx + 0x1c], edx
add edx, dword [eax + ecx + 0x24]
lea eax, [eax + ecx + 8]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x10]
sub edx, ebx
mov ebx, dword [eax + 0x18]
add edx, ebx
mov ebx, dword [esi + 0x9e]
cmp ebx, edx
jle 0x1011ef5
mov edx, ebx
mov ebx, dword [ebp - 0x24]
mov dword [esi + 0x9e], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
add eax, edx
mov edx, eax
sub edx, ebx
test edx, edx
jle 0x1011f20
mov edx, dword [esi + 0xa2]
cmp edx, eax
jle 0x1011f1a
mov eax, edx
mov dword [esi + 0xa2], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1011f2e
mov ecx, dword [esi + 0xba]
jmp 0x1011f38
mov eax, dword [esi + 0xaa]
mov ecx, dword [eax + ecx + 4]
cmp ecx, 0xffffffff
mov dword [ebp + 0xc], ecx
jne 0x1011ec4
xor edx, edx
cmp dword [ebp - 0x20], edx
jne 0x1011fc2
cmp dword [ebp - 0xc], edx
je 0x1011fc2
cmp dword [ebp - 0x10], edx
je 0x1011fc2
cmp edi, edx
jge 0x1011fc2
neg edi
cmp edi, dword [esi + 0x7c]
jg 0x1011f6d
mov eax, dword [esi + 0x78]
add eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
cmp dword [esi + 0xa2], eax
jg 0x1011fc2
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0xaa]
imul edi, edi, 0x3e
push edx
push 1
mov eax, dword [eax + edi + 0x10]
push esi
mov dword [ebp + 0xc], eax
call fcn.010121b6
mov eax, dword [esi + 0xaa]
or dword [esi + 0x13a], 0xffffffff
xor ebx, ebx
push esi
mov dword [eax + edi + 0x10], ebx
call fcn.01011a6b
push ebx
push 1
pop edi
push edi
push ebx
push dword [ebp + 0xc]
push esi
call fcn.01010bb6
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x20], edi
xor edx, edx
jmp 0x1011bee
xor eax, eax
jmp 0x101201c
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0xaa]
imul eax, eax, 0x3e
add ecx, eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x90], eax
mov edi, dword [ecx + 0x24]
cmp edi, edx
jne 0x1011fe8
mov dword [esi + 0x94], edx
jmp 0x1011ffb
mov eax, dword [ebp + 8]
neg eax
shl eax, 0x10
cdq
idiv edi
xor edx, edx
mov dword [esi + 0x94], eax
cmp dword [esi], 5
jne 0x1012005
mov eax, dword [esi + 0x3c]
jmp 0x1012008
mov eax, dword [esi + 0x40]
cmp eax, dword [ecx + 0x14]
jne 0x1012019
cmp dword [ecx + 0x1c], edx
jne 0x1012019
or byte [esi + 0x98], 1
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0xc