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

Disassembly:
mov eax, 0x10226089
call fcn.10210210
sub esp, 0x34
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ecx, [ebx + 0x54]
mov dword [esp + 0x34], ebx
call fcn.1001af03
lea ecx, [ebx + 0x58]
mov dword [esp + 0x38], eax
call fcn.101887d6
xor ebx, ebx
mov dword [esp + 0x1c], eax
push 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.1001265f
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], ebx
call fcn.1001265f
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x6c]
push 0x64
mov ebp, dword [ebp]
pop eax
cmp edx, eax
mov dword [esp + 0x30], ebp
cmovl edx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x68], edx
cmp ecx, eax
jge 0x10186bdc
mov ebp, dword [esp + 0x5c]
mov edi, eax
mov edx, dword [esp + 0x1c]
imul ebx, ecx, 0x24
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + ebx]
imul eax, ecx, 0xc
test byte [eax + edx], 0x80
je 0x10186bc6
mov eax, dword [esp + 0x38]
mov edx, dword [ebp]
movzx eax, word [eax + ecx*2]
mov ecx, ebp
push eax
call dword [edx + 0x4c]
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xe8]
test al, al
jne 0x10186bbe
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc4]
test eax, eax
je 0x10186bbe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x13c]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
sub esi, eax
mov byte [esp + 0x6c], 1
lea eax, [esp + 0x6c]
mov dword [esp + 0x18], esi
push eax
call fcn.10188814
jmp 0x10186bc2
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add ebx, 0x24
dec edi
jne 0x10186b53
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
cmp dword [esp + 0x60], ebx
jg 0x10186bed
sub ebx, dword [esp + 0x60]
inc ebx
jmp 0x10186bef
xor ebx, ebx
and dword [esp + 0x30], 0
sub ebx, esi
mov esi, dword [esp + 0x10]
mov edi, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x6c], edi
test edx, edx
je 0x10186e3c
test esi, esi
je 0x10186c1d
mov eax, dword [esi - 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
jmp 0x10186c22
and dword [esp + 0x2c], 0
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
jge 0x10186e3c
and dword [esp + 0x28], 0
mov dword [esp + 0x14], ecx
cmp ecx, eax
jge 0x10186e19
imul edi, ecx, 0x24
mov dword [esp + 0x2c], edi
test edx, edx
je 0x10186e38
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0x60]
add eax, edi
mov dword [esp + 0x20], eax
mov edi, dword [eax]
imul eax, edi, 0xc
test byte [eax + esi], 0x80
mov esi, dword [esp + 0x10]
je 0x10186d55
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx]
movzx eax, word [eax + edi*2]
push eax
call dword [edx + 0x4c]
mov edi, eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0xe8]
test al, al
jne 0x10186d4d
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc4]
test eax, eax
je 0x10186d4d
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + esi]
inc ecx
mov dword [esp + 0x28], ecx
test al, al
je 0x10186d4d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc4]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x24], eax
call dword [edx + 0x13c]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x3c], eax
call dword [edx + 0x14c]
mov ecx, eax
mov eax, dword [esp + 0x24]
imul eax, ebx
cdq
idiv dword [esp + 0x68]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
cmp eax, edx
jl 0x10186dc4
cmp ecx, 1
jle 0x10186d11
cmp eax, ecx
jg 0x10186d74
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
mov dword [eax + 0x18], ecx
mov eax, dword [edi]
mov dword [edi + 0x34], ecx
mov ecx, edi
call dword [eax + 0x288]
cmp dword [edi + 0x38], ebp
mov eax, dword [esp + 0x20]
cmovg ebp, dword [edi + 0x38]
mov edx, dword [esp + 0x68]
sub ebx, dword [eax + 0x18]
sub edx, dword [esp + 0x24]
mov dword [esp + 0x68], edx
jmp 0x10186d51
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x2c], 0x24
inc ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
cmp ecx, eax
jge 0x10186e11
mov edi, dword [esp + 0x2c]
jmp 0x10186c4c
mov eax, dword [esp + 0x20]
push dword [esp + 0x5c]
mov ebx, dword [esp + 0x1c]
push dword [esp + 0x5c]
mov dword [eax + 0x18], ecx
sub ebx, ecx
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x34], ecx
mov ecx, edi
mov dword [esp + 0x20], ebx
mov byte [eax + esi - 1], 0
mov eax, dword [edi]
call dword [eax + 0x288]
cmp dword [edi + 0x38], ebp
mov eax, dword [esp + 0x78]
cmovg ebp, dword [edi + 0x38]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
jmp 0x10186e1d
mov eax, dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x5c]
mov ebx, dword [esp + 0x1c]
push dword [esp + 0x5c]
mov dword [eax + 0x18], edx
sub ebx, edx
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x34], edx
mov dword [esp + 0x20], ebx
mov byte [eax + esi - 1], 0
mov eax, dword [edi]
call dword [eax + 0x288]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
cmp dword [edi + 0x38], ebp
jle 0x10186dbe
mov ebp, dword [edi + 0x38]
jmp 0x10186dbe
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x68], 0
je 0x10186e3c
inc dword [esp + 0x30]
mov edx, edi
mov dword [esp + 0x68], edx
test edi, edi
jne 0x10186c0c
jmp 0x10186e3c
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
cmp ebp, dword [ebx]
je 0x10186e72
mov edx, ebp
sub edx, dword [ebx]
mov dword [ebx], ebp
cmp ecx, eax
jge 0x10186e72
mov esi, dword [esp + 0x34]
imul edi, ecx, 0x24
sub eax, ecx
mov dword [esp + 0x78], eax
mov ecx, eax
mov eax, dword [esi + 0x60]
lea edi, [edi + 0x24]
add dword [eax + edi - 0x10], edx
mov dword [eax + edi - 0x14], ebp
dec ecx
jne 0x10186e5d
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10186e80
add esi, 0xfffffff8
push esi
call fcn.101dad34
pop ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0x24