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

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov eax, dword [eax]
mov esi, ecx
imul ecx, dword [esp + 0x58], 0x6c
mov ebp, 1
mov dword [esp + 0x24], eax
xor ebx, ebx
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x24], edx
add eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], eax
mov eax, edi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov ecx, eax
shl ebp, cl
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov eax, dword [ecx + 0x14]
dec eax
div ebp
mov edx, dword [ecx + 0x58]
inc eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
test edx, edx
js 0x10027894
mov ebx, dword [ecx + 0x28]
mov ecx, ebx
shr ebp, cl
imul eax, ebp
push ebp
push eax
lea eax, [edi + 1]
mov edi, 1
cdq
sub eax, edx
imul edx, dword [esp + 0x34], 0x6c
sar eax, 1
mov ecx, eax
mov eax, dword [esp + 0x30]
shl edi, cl
mov ecx, ebx
shr edi, cl
mov ecx, esi
imul edi, dword [esp + 0x68]
push 0
mov edx, dword [edx + eax + 0xc]
push edi
call fcn.100214b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ebp, dword [esp + 0x60]
cmp dword [esp + 0x5c], ebx
jle 0x10027944
lea eax, [edi + 1]
mov ebx, 1
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov ecx, eax
shl ebx, cl
mov ecx, dword [esp + 0x14]
mov edi, ebx
imul edi, ebp
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x4c]
mov eax, dword [eax + edi*4]
div dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + edi*4]
mov edi, dword [esp + 0x20]
dec eax
div edi
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 0x28]
mov edx, dword [edx - 0x60]
shr edi, cl
mov eax, edi
shr ebx, cl
imul eax, dword [esp + 0x2c]
mov ecx, esi
push edi
imul ebx, ebp
push eax
push 0
push ebx
call fcn.100214b0
mov ecx, dword [esp + 0x40]
xor edx, edx
mov eax, dword [esp + 0x38]
push edi
mov eax, dword [eax + ecx + 0x14]
dec eax
div dword [esp + 0x34]
inc eax
imul eax, edi
imul edi, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x5c]
push edi
push ebx
mov edx, dword [eax]
mov edx, dword [edx + ecx - 0x60]
mov ecx, esi
call fcn.100214b0
mov ebx, dword [esp + 0x4c]
add esp, 0x20
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
cmp ebp, 1
jbe 0x10027b59
lea eax, [edi + 1]
mov edi, 1
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov ecx, eax
shl edi, cl
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x18]
dec eax
div edi
mov dl, byte [esp + 0x68]
cmp ebp, eax
mov eax, dword [esp + 0x10]
jae 0x10027b61
test dl, dl
jne 0x10027b61
test ebx, ebx
jne 0x10027b61
cmp eax, 3
jbe 0x10027b61
mov ebx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x5c], edi
lea ecx, [ecx]
push dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push edi
push ebp
push dword [esp + 0x6c]
push ecx
push esi
push ecx
mov ecx, dword [esp + 0x78]
call fcn.10036ec0
mov ecx, dword [esp + 0x3c]
add esp, 0x24
mov edi, eax
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x20]
sub ecx, edi
push ecx
push dword [esp + 0x5c]
mov ecx, ebx
call fcn.1001fbd0
mov edx, dword [esi]
add eax, edi
mov edi, dword [esp + 0x5c]
mov ecx, esi
push eax
push edi
push ebp
call dword [edx + 0x28]
mov ecx, dword [esp + 0x14]
inc edi
mov dword [esp + 0x5c], edi
cmp edi, 2
jb 0x100279a0
mov edi, dword [esp + 0x10]
mov eax, 2
add edi, 0xfffffffe
mov dword [esp + 0x5c], eax
cmp edi, eax
jbe 0x10027ab5
jmp 0x10027a20
push dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebp
sub esp, 8
push esi
push ecx
mov ecx, dword [esp + 0x78]
call fcn.10037180
mov ecx, dword [esp + 0x3c]
mov edx, eax
mov eax, dword [esp + 0x40]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x50], edx
add esp, 0x24
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], eax
cmp eax, ecx
je 0x10027a93
push dword [esp + 0x54]
mov ecx, ebx
call fcn.10020f40
push dword [esp + 0x44]
mov edx, dword [esp + 0x34]
lea ecx, [ebx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
call fcn.100356a0
add esp, 4
add eax, dword [esp + 0x2c]
mov ecx, esi
mov edx, dword [esi]
push eax
push dword [esp + 0x60]
push ebp
call dword [edx + 0x28]
mov eax, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, edi
jb 0x10027a20
cmp edi, dword [esp + 0x10]
jae 0x10027c64
nop
push dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push edi
push ebp
push dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x70]
push esi
push dword [esp + 0x34]
call fcn.10036ec0
mov ecx, dword [esp + 0x3c]
mov edx, eax
mov eax, dword [esp + 0x40]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x54], edx
add esp, 0x24
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x44], eax
cmp eax, ecx
je 0x10027b38
push dword [esp + 0x54]
mov ecx, ebx
call fcn.10020f40
push dword [esp + 0x5c]
mov edx, dword [esp + 0x48]
lea ecx, [ebx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
call fcn.100356a0
add esp, 4
add eax, dword [esp + 0x30]
mov ecx, esi
mov edx, dword [esi]
push eax
push edi
push ebp
call dword [edx + 0x28]
inc edi
cmp edi, dword [esp + 0x10]
jb 0x10027ac0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x10]
mov dl, byte [esp + 0x68]
cmp ebx, eax
jae 0x10027c64
lea esp, [esp]
mov edi, dword [esp + 0x58]
test dl, dl
je 0x10027bba
mov ecx, dword [ecx + 0x10]
push ebx
push ebp
push edi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jle 0x10027bb6
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x5c]
sub ecx, eax
mov eax, dword [esp + 0x44]
imul ecx, ecx, 0x6c
push ebx
push ebp
mov eax, dword [eax]
push edi
mov ecx, dword [ecx + eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x10027c47
mov ecx, dword [esp + 0x14]
push dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
push edi
push ecx
push esi
push ecx
mov ecx, dword [esp + 0x78]
call fcn.10036ec0
mov ecx, dword [esp + 0x3c]
add esp, 0x24
cmp byte [esp + 0x68], 0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
je 0x10027bff
cmp eax, ecx
jg 0x10027bf9
cmp eax, edi
jge 0x10027bff
mov eax, edi
mov dword [esp + 0x2c], edi
sub ecx, eax
sub edi, eax
mov dword [esp + 0x30], ecx
cmp edi, ecx
je 0x10027c45
push dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
call fcn.10020f40
mov edx, dword [esp + 0x24]
push dword [esp + 0x30]
mov dword [esp + 0x40], eax
lea ecx, [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx]
mov edx, edi
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
call fcn.100356a0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x2c]
add eax, edi
mov edx, dword [esi]
mov ecx, esi
push eax
push ebx
push ebp
call dword [edx + 0x28]
mov ecx, dword [esp + 0x14]
inc ebx
mov dl, byte [esp + 0x68]
cmp ebx, dword [esp + 0x10]
jb 0x10027b70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret