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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, SysReAllocStringLen
push esi
push edi
mov edi, ecx
mov dword [esp + 0x80], edi
cmp dword [edi + 0x40], edx
je 0x1018615c
cmp dword [edi + 0x4c], edx
je 0x10186145
mov eax, dword [edi + 0x4c]
xor ecx, ecx
cmp eax, edx
cmove eax, ecx
cmp eax, ebx
jne 0x10186145
cmp dword [edi + 0x34], ebx
je 0x10186a10
cmp dword [edi + 0x40], edx
je 0x1018615c
mov eax, dword [edi + 0x60]
test eax, eax
je 0x10186156
mov eax, dword [eax - 4]
jmp 0x10186158
xor eax, eax
test eax, eax
jne 0x1018616c
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.10185c66
jmp 0x1018616f
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0xc]
call dword [eax + 0xe4]
mov edx, dword [esi]
mov ecx, esi
push dword [edi + 0x5c]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x6c]
mov dword [esp + 0x88], eax
call dword [edx + 0xc]
mov edx, dword [esi]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call dword [edx + 0x1c]
mov esi, dword [esp + 0x6c]
push ebx
sub esp, 0x10
mov ecx, esp
lea eax, [esi + 0xc]
push eax
call fcn.10003a43
lea ecx, [esi + 0x24]
call fcn.1008645a
mov ecx, dword [edi + 0x40]
mov edx, SysReAllocStringLen
mov dword [esp + 0x78], eax
xor eax, eax
cmp ecx, edx
cmove ecx, eax
cmp ebx, ecx
jle 0x101861de
mov eax, ebx
jmp 0x101861e8
mov eax, dword [edi + 0x40]
xor ecx, ecx
cmp eax, edx
cmove eax, ecx
mov dword [edi + 0x34], eax
test ebx, ebx
jle 0x10186a06
mov eax, dword [edi + 0x54]
test eax, eax
je 0x101861ff
mov eax, dword [eax - 4]
jmp 0x10186201
xor eax, eax
test eax, eax
je 0x10186a06
mov eax, dword [edi + 0x54]
lea ecx, [edi + 0x58]
mov dword [esp + 0x50], eax
call fcn.101887d6
mov edx, dword [edi]
mov ecx, edi
or dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x60], eax
call dword [edx + 0x178]
mov ecx, dword [edi + 0x60]
mov ebx, eax
mov dword [esp + 0x24], ebx
test ecx, ecx
je 0x10186244
mov eax, dword [ecx - 4]
jmp 0x10186246
xor eax, eax
xor esi, esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], esi
test eax, eax
jle 0x1018697a
mov eax, dword [edi]
lea ecx, [esp + 0x98]
and dword [esp + 0x44], 0
and dword [esp + 0x1c], 0
and dword [esp + 0x48], 0
and dword [esp + 0x30], 0
and dword [esp + 0x40], 0
or dword [esp + 0x34], 0xffffffff
and dword [esp + 0x28], 0
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x44], esi
call dword [eax + 0x278]
mov ecx, dword [eax]
mov edx, ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
imul eax, esi, 0x24
mov dword [esp + 0x70], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x5c]
jge 0x101866a1
mov ecx, dword [edi + 0x60]
mov esi, dword [ebp + 8]
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x50]
mov ecx, dword [ecx + 0x20]
mov esi, dword [esi]
lea edx, [edx + eax*2]
imul eax, eax, 0xc
mov dword [esp + 0x14], edx
add eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
call fcn.1015ab3c
mov ecx, dword [ebp + 8]
push eax
call dword [esi + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x74]
push edx
lea edx, [esp + 0x6c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x54], eax
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x64], edx
mov eax, dword [ecx + 0x1b8]
test eax, eax
je 0x10186349
cmp eax, 0x80
je 0x10186337
test eax, eax
je 0x10186349
cmp eax, 0x70
jne 0x10186349
lea eax, [edx + edx]
mov dword [esp + 0x64], eax
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0xf], 0
test byte [eax], 0x80
je 0x1018657e
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
movzx eax, word [eax]
push eax
call dword [edx + 0x4c]
mov ecx, dword [esp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov edx, dword [esi]
mov dword [esi + 0x18], edi
mov ecx, dword [ecx]
mov dword [esi + 0x1c], ecx
mov ecx, esi
call dword [edx + 0x288]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe8]
test al, al
jne 0x101864f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c8]
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
call dword [edx + 0x1c4]
mov edx, dword [esi]
add ebx, eax
push dword [ebp + 0xc]
add ebx, dword [esi + 0x38]
mov ecx, esi
call dword [edx + 0xd8]
cmp dword [eax + 0x1b8], 0
je 0x101863e1
cmp dword [eax + 0x1b8], 0x40
je 0x101863e1
cmp dword [esp + 0x40], ebx
jge 0x101863f6
mov dword [esp + 0x40], ebx
jmp 0x101863f6
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x64], ebx
call dword [eax + 0x1c4]
add eax, dword [esi + 0x38]
mov dword [esp + 0x54], eax
mov edx, dword [esi]
mov ecx, esi
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
call dword [edx + 0xc4]
test eax, eax
je 0x10186426
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc4]
add dword [esp + 0x28], eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x13c]
jmp 0x10186429
mov eax, dword [esi + 0x34]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x6c]
inc dword [esp + 0x44]
cmp dword [eax + 0x38], 0x80000000
je 0x10186466
cmp dword [eax + 0x38], 2
jne 0x10186466
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 0xe4]
cmp eax, 0xff
je 0x101864b6
test eax, eax
je 0x101864b6
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x18]
dec ecx
mov edx, dword [esp + 0x58]
add eax, ecx
cmp eax, edx
jle 0x101864b6
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
cmp eax, dword [esp + 0x3c]
jge 0x10186490
test ecx, ecx
jne 0x10186490
cmp edx, dword [esp + 0x60]
je 0x101864b6
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x3c], eax
jne 0x10186666
cmp dword [esp + 0x7c], eax
je 0x101864b6
test ecx, ecx
jne 0x1018663a
cmp edx, dword [esp + 0x60]
jne 0x1018663a
mov bh, byte [esp + 0xf]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov edx, dword [esp + 0x4c]
cmovg ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x64]
sub ecx, eax
mov eax, dword [esp + 0x48]
cmp ecx, eax
cmovg eax, ecx
add edx, dword [esi + 0x18]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
add eax, dword [esi + 0x18]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], eax
jmp 0x101865b5
mov eax, dword [esp + 0x10]
and dword [eax + 0x18], 0
cmp dword [esp + 0x44], 0
jne 0x101865ad
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xec]
xor ecx, ecx
inc ecx
cmp eax, ecx
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x18]
push esi
jne 0x1018652e
add eax, ebx
push eax
call fcn.1018537e
jmp 0x10186536
add eax, ebx
push eax
call fcn.101853b9
mov esi, dword [esp + 0x60]
test esi, esi
js 0x101865ad
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x28]
add eax, ebx
push eax
mov edx, dword [ecx]
lea eax, [esp + 0xa4]
push eax
call dword [edx + 0x278]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
sub ecx, dword [edi + 0x24]
mov bh, al
sub edx, dword [edi + 0x24]
test ecx, ecx
cmovle ecx, eax
cmp edx, esi
mov dword [esp + 0x70], ecx
cmovge edx, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], edx
jmp 0x101865b1
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
cmp eax, 0xd
jne 0x10186594
xor eax, eax
inc eax
mov bh, al
jmp 0x101864ba
cmp eax, 0xa
jne 0x10186437
mov bh, byte [esp + 0xf]
cmp ecx, dword [esp + 0x50]
je 0x101864ba
jmp 0x101865b9
mov bh, byte [esp + 0xf]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov bl, byte [eax]
shr bl, 7
mov al, bl
not al
test al, 1
je 0x101865db
mov eax, dword [esi + 4]
mov cx, word [ecx + eax*2 - 2]
call fcn.10185ade
test al, al
jne 0x101865df
test bl, bl
je 0x10186615
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], esi
mov dword [esp + 0x90], eax
jmp 0x10186619
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
inc esi
add eax, 0x24
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], eax
test bh, bh
jne 0x101866a1
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
jmp 0x101862ac
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x18]
push dword [eax + 0x18]
lea eax, [ebx + 1]
add eax, dword [edi + 0x28]
push eax
call fcn.1018544e
mov esi, dword [esp + 0x20]
mov ebx, eax
sub ebx, dword [edi + 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x7c], esi
jmp 0x10186258
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jl 0x101866a1
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x40], eax
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x24]
push eax
mov edx, dword [ecx]
lea eax, [esp + 0xac]
push eax
call dword [edx + 0x278]
mov edx, dword [esp + 0x78]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
xor eax, eax
sub ecx, dword [edi + 0x24]
sub esi, dword [edi + 0x24]
test ecx, ecx
cmovle ecx, eax
cmp esi, dword [esp + 0x60]
mov eax, dword [esp + 0x48]
cmovge esi, dword [esp + 0x60]
xor ebx, ebx
add eax, dword [esp + 0x1c]
cmp eax, edx
mov dword [esp + 0x2c], ecx
cmovg edx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], edx
cmp eax, edx
jle 0x10186715
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
add dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x6c]
push 1
pop edx
mov eax, dword [eax + 0x40]
test eax, eax
cmove eax, edx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x1018675e
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push dword [esp + 0x40]
push eax
push dword [esp + 0x3c]
push edx
push esi
push ecx
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.10186ac3
xor ecx, ecx
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
dec eax
je 0x10186812
dec eax
je 0x10186914
dec eax
je 0x10186908
dec eax
jne 0x10186814
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x5c]
je 0x10186812
cmp ecx, esi
jg 0x10186791
sub esi, ecx
inc esi
jmp 0x10186793
xor esi, esi
sub esi, dword [esp + 0x30]
dec eax
mov dword [esp + 0x58], eax
jmp 0x1018680e
mov edx, dword [esp + 0x3c]
mov ebx, edx
mov dword [esp + 0x28], esi
test esi, esi
jle 0x10186812
imul ecx, edx, 0x24
cmp ebx, eax
jge 0x10186804
mov edx, dword [edi + 0x60]
mov edi, dword [esp + 0x50]
add edx, ecx
mov dword [esp + 0x38], edx
push 0x20
mov eax, dword [edx + 4]
add eax, dword [edx]
pop edx
cmp word [edi + eax*2 - 2], dx
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x38]
jne 0x101867f8
imul eax, dword [edx], 0xc
mov edi, dword [esp + 0x18]
mov al, byte [eax + edi]
mov edi, dword [esp + 0x80]
shr al, 7
not al
test al, 1
je 0x101867f8
dec esi
inc dword [edx + 0x18]
mov eax, dword [esp + 0x58]
inc ebx
add ecx, 0x24
test esi, esi
jg 0x101867af
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x28], esi
je 0x10186812
test esi, esi
jg 0x1018679e
mov ebx, ecx
mov esi, dword [esp + 0x20]
cmp ebx, ecx
mov edx, dword [esp + 0x3c]
cmovl ebx, ecx
mov dword [esp + 0x38], ebx
mov ecx, ebx
cmp edx, esi
jge 0x10186964
imul eax, edx, 0x24
mov dword [esp + 0x28], eax
mov eax, esi
sub eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov ebx, dword [edi + 0x60]
add ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 8], ecx
add ecx, dword [ebx + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0xc], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
imul eax, ecx, 0xc
test byte [eax + edx], 0x80
je 0x101869fd
mov eax, dword [esp + 0x50]
movzx eax, word [eax + ecx*2]
mov ecx, dword [ebp + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xe8]
test al, al
jne 0x101869b5
mov ecx, dword [ebx + 8]
mov dword [esi + 0x24], ecx
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x1b8], 0
je 0x101868f2
cmp dword [eax + 0x1b8], 0x10
je 0x101869ad
push 0x20
pop ecx
cmp dword [eax + 0x1b8], ecx
je 0x1018698e
cmp dword [eax + 0x1b8], 0x30
je 0x1018692a
cmp dword [eax + 0x1b8], 0x40
jne 0x10186943
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c8]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [esi + 0x38]
add ecx, dword [esp + 0x1c]
jmp 0x1018693e
mov ebx, esi
sub ebx, dword [esp + 0x30]
inc ebx
jmp 0x10186814
sub esi, ecx
sub esi, dword [esp + 0x30]
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, ecx
jmp 0x10186814
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c8]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [esi + 0x38]
add ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add eax, 0x24
dec dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jne 0x10186846
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
cmp esi, dword [esp + 0x5c]
jl 0x10186258
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x34], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x38], ebx
mov dword [edi + 0x48], ebx
jmp 0x10186a10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c4]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, dword [esi + 0x38]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
add ecx, dword [ebx + 0xc]
jmp 0x10186940
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x28], eax
jmp 0x10186943
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x38]
je 0x10186947
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xec]
xor ecx, ecx
inc ecx
cmp eax, ecx
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x18]
push esi
jne 0x101869ea
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x28]
push eax
call fcn.1018537e
jmp 0x10186943
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x28]
push eax
call fcn.101853b9
jmp 0x10186943
mov ecx, dword [esp + 0x10]
jmp 0x1018694b
mov eax, dword [esp + 0x68]
mov dword [edi + 0x38], eax
mov dword [edi + 0x48], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc