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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov ebx, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
push esi
mov dword [esp + 0x38], eax
push edi
push dword [esp + 0x3c]
mov edi, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
movzx eax, cx
mov esi, dword [edi + 0xc]
mov dword [esp + 0x54], eax
and eax, 0x7fff
mov dword [esp + 0x44], eax
mov eax, dword [edi]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
push edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x4c], edx
mov edx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
push ebp
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], 0x2000
call fcn.1013e950
add esp, 0x10
test eax, eax
jne 0x1013ef57
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x10]
sub ecx, edx
cmp ecx, 3
jae 0x1013ec41
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov ecx, dword [esp + 0x44]
jmp 0x1013ef54
mov eax, dword [esp + 0x54]
add eax, edx
cmp eax, dword [esp + 0x68]
mov eax, dword [esp + 0x54]
cmova eax, ecx
mov dword [esp + 0x2c], eax
add eax, edx
add eax, dword [esp + 0x60]
mov dword [esp + 0x4c], eax
add eax, 0xfffffff8
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + esi*4]
mov eax, dword [esp + 0x24]
mov edx, ecx
movzx esi, word [eax + edx*2]
movzx eax, si
sub edx, eax
mov dword [esp + 0x28], esi
cmp si, cx
lea eax, [edx + 0x8000]
cmovae edx, eax
mov dword [esp + 0x54], edx
cmp edx, 0x8000
jae 0x1013ee26
nop
test edx, edx
je 0x1013eda1
mov ecx, dword [esp + 0x10]
mov esi, ecx
mov edi, dword [esp + 0x60]
sub esi, edx
movzx edx, bx
lea eax, [ecx + edi]
add ecx, edx
add edi, esi
cmp ecx, dword [esp + 0x68]
jae 0x1013ecd0
mov cl, byte [edx + eax]
cmp cl, byte [edx + edi]
jne 0x1013ed9d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
and ecx, 0x7fff
mov edx, dword [edx + 0x20]
movzx ebx, word [edx + ecx*2]
cmp ebx, 2
jbe 0x1013ed1b
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x1013ed1b
and esi, 0x7fff
mov ecx, ebx
movzx edx, word [edx + esi*2]
cmp bx, dx
mov esi, edx
mov ebx, dword [esp + 0x2c]
cmovb esi, ecx
movzx edx, si
mov ecx, edx
cmp ecx, ebx
jbe 0x1013ed14
movzx edx, bx
movzx ecx, dx
add eax, ecx
add edi, ecx
mov edx, dword [esp + 0x48]
cmp eax, edx
jae 0x1013ed33
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x1013ed33
add eax, 4
add edi, 4
cmp eax, edx
jb 0x1013ed23
mov edx, dword [esp + 0x4c]
cmp eax, edx
je 0x1013ed4c
sub edi, eax
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [edi + eax]
jne 0x1013ed4c
inc eax
cmp eax, edx
jne 0x1013ed40
sub eax, dword [esp + 0x50]
sub eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x38]
movzx edx, ax
cmp dx, bx
jbe 0x1013ed9d
mov edi, dword [esp + 0x54]
test ebp, ebp
je 0x1013ed84
lea eax, [ebx + 1]
movzx ecx, ax
cmp cx, dx
ja 0x1013ed84
movzx esi, di
movzx eax, cx
inc ecx
mov word [ebp + eax*2], si
cmp cx, dx
jbe 0x1013ed76
movzx eax, di
mov ebx, edx
mov dword [esp + 0x34], eax
mov eax, edx
mov dword [esp + 0x38], ebx
cmp eax, dword [esp + 0x2c]
jae 0x1013ee26
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 0x10]
cmp dword [esp + 0x20], esi
je 0x1013edd7
mov eax, dword [esp + 0x40]
movzx ecx, ax
mov eax, dword [edi + 0x20]
cmp bx, word [eax + ecx*2]
jb 0x1013edd7
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0x18]
movzx edx, ax
mov eax, dword [edi + 0x1c]
cmp eax, dword [ecx + edx*4]
jne 0x1013edd7
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
movzx edx, ax
movzx ecx, ax
mov eax, dword [esp + 0x24]
movzx esi, word [eax + ecx*2]
mov dword [esp + 0x28], esi
cmp si, dx
je 0x1013ee26
movzx eax, si
sub ecx, eax
cmp si, dx
mov edx, dword [esp + 0x54]
lea eax, [ecx + 0x8000]
cmovae ecx, eax
mov eax, dword [esp + 0x14]
dec eax
add edx, ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x1013ee26
cmp edx, 0x8000
jb 0x1013eca0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
sub esi, dword [edi + 8]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], esi
test edx, edx
je 0x1013ee53
mov eax, dword [edx]
cmp word [eax + esi*2], 0
je 0x1013ee4f
mov eax, dword [edx + 4]
cmp word [eax + esi*2], 0
je 0x1013ee53
mov al, 1
jmp 0x1013ee5d
xor al, al
test edx, edx
je 0x1013ef41
cmp dword [esp + 0x2c], 0x102
jne 0x1013ef41
test ebp, ebp
je 0x1013ef41
test al, al
jne 0x1013ef41
add esi, esi
cmp bx, 3
jae 0x1013ee8e
mov eax, dword [edx + 4]
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x1013ee9f
mov eax, dword [esp + 0x34]
movzx ecx, ax
mov eax, dword [edx + 4]
mov word [esi + eax], cx
movzx ecx, bx
mov eax, dword [edi + 4]
xor edi, edi
movzx ebx, bx
mov dword [esp + 0x14], edi
mov eax, dword [eax]
mov word [esi + eax], cx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
lea ecx, [ecx + ecx*2]
mov eax, dword [eax + 8]
lea ebp, [eax + ecx*8]
mov dword [esp + 0x40], ebp
cmp ebx, 3
jb 0x1013ef41
mov ecx, 3
lea esi, [ebp + 2]
lea edx, [ecx + ecx]
cmp ecx, ebx
je 0x1013eef4
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
mov ax, word [edx + eax]
cmp ax, word [edx + ebp + 2]
mov ebp, dword [esp + 0x40]
je 0x1013ef2e
lea eax, [ecx - 3]
mov byte [esi - 2], al
mov eax, dword [esp + 0x1c]
mov al, byte [eax + edx]
mov byte [esi - 1], al
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + edx + 1]
and eax, 0x800000ff
jns 0x1013ef1b
dec eax
or eax, 0xffffff00
inc eax
mov byte [esi], al
inc edi
mov eax, ecx
add esi, 3
mov dword [esp + 0x14], eax
cmp edi, 8
jae 0x1013ef41
jmp 0x1013ef32
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, ebx
jbe 0x1013eed6
cmp edi, 8
jae 0x1013ef41
sub al, 3
mov byte [ebp + 0x15], al
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov word [ecx], ax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov word [ecx], ax
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x4c
ret