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

Disassembly:
mov edx, dword [esp + 0x40]
mov ebx, dword [edx + eax*4]
add ebx, dword [esp + 0x4c]
cmp byte [ebx], 0
je 0x10016c0b
xor edi, edi
inc edi
cmp byte [edi + ebx], 0
jne 0x10016ba4
test edi, edi
je 0x10016c0b
mov edx, edi
xor esi, esi
shr edx, 1
je 0x100177bb
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x1c]
imul esi, eax
movsx edi, byte [ebx + ecx*2]
movzx edi, di
add esi, edi
imul esi, eax
movsx edi, byte [ebx + ecx*2 + 1]
inc ecx
movzx edi, di
add esi, edi
cmp ecx, edx
jb 0x10016bc9
mov edi, dword [esp + 0x2c]
lea ecx, [ecx + ecx + 1]
or dword [ecx], eax
or dword [ecx], eax
mov eax, dword [esp + 0x20]
lea edx, [ecx - 1]
cmp edx, edi
jae 0x10016c0d
imul esi, dword [esp + 0x1c]
movsx edx, byte [ecx + ebx - 1]
movzx ecx, dx
add esi, ecx
jmp 0x10016c0d
xor esi, esi
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
movzx ebx, word [edx + eax*2]
mov edx, dword [ecx + ebx*4]
add edx, dword [esp + 0x4c]
cmp esi, dword [esp + 0x30]
je 0x10017dcf
inc eax
cmp eax, dword [esp + 0x34]
jb 0x10016b92
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
add esi, eax
lea edi, [eax + ebx]
lea ebx, [eax + ecx]
mov dword [esp + 0x1c], 0
mov eax, dword [0x1003b030]
mov dword [esp + 0x44], eax
mov eax, dword [0x1003b044]
mov dword [esp + 0x2c], eax
test edx, edx
jbe 0x10016d3e
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov ebx, dword [eax + edi*4]
add ebx, dword [esp + 0x4c]
cmp byte [ebx], 0
invalid
je 0x10016d0c
xor esi, esi
inc esi
cmp byte [esi + ebx], 0
jne 0x10016ca5
test esi, esi
je 0x10016d0c
mov eax, esi
xor ecx, ecx
shr eax, 1
je 0x100177c5
mov dword [esp + 0x30], esi
xor edx, edx
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x2c]
imul ecx, esi
movsx edi, byte [ebx + edx*2]
movzx edi, di
add ecx, edi
imul ecx, esi
movsx edi, byte [ebx + edx*2 + 1]
inc edx
movzx edi, di
add ecx, edi
cmp edx, eax
jb 0x10016cca
mov esi, dword [esp + 0x30]
lea edx, [edx + edx + 1]
mov edi, dword [esp + 0x20]
lea eax, [edx - 1]
cmp eax, esi
jae 0x10016d0e
imul ecx, dword [esp + 0x2c]
movsx eax, byte [edx + ebx - 1]
movzx edx, ax
add ecx, edx
jmp 0x10016d0e
xor ecx, ecx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
movzx ebx, word [eax + edi*2]
mov eax, dword [edx + ebx*4]
add eax, dword [esp + 0x4c]
cmp ecx, dword [esp + 0x44]
je 0x10017dbe
inc edi
cmp edi, dword [esp + 0x34]
jb 0x10016c93
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x50]
mov eax, dword [0x1003b048]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x3c]
mov edi, dword [0x1003b044]
mov dword [esp + 0x2c], edi
mov ebx, dword [eax + esi + 0x78]
mov edi, dword [ebx + esi + 0x20]
mov dword [esp + 0x5c], edi
lea eax, [esi + edi]
mov edi, dword [ebx + esi + 0x1c]
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], eax
lea eax, [esi + edi]
mov edi, dword [ebx + esi + 0x24]
mov ebx, dword [ebx + esi + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], ebx
lea eax, [esi + edi]
mov dword [esp + 0x54], edi
mov esi, dword [esp + 0x44]
test ebx, ebx
mov ebx, dword [esp + 0x48]
jbe 0x10016e70
mov dword [esp + 0x30], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
mov ebx, dword [eax + edi*4]
add ebx, dword [esp + 0x50]
cmp byte [ebx], 0
je 0x10016e3e
xor esi, esi
inc esi
cmp byte [esi + ebx], 0
jne 0x10016dd7
test esi, esi
je 0x10016e3e
mov eax, esi
xor ecx, ecx
shr eax, 1
je 0x100177cf
mov dword [esp + 0x3c], esi
xor edx, edx
mov dword [esp + 0x30], edi
mov esi, dword [esp + 0x2c]
imul ecx, esi
movsx edi, byte [ebx + edx*2]
movzx edi, di
add ecx, edi
imul ecx, esi
movsx edi, byte [ebx + edx*2 + 1]
inc edx
movzx edi, di
add ecx, edi
cmp edx, eax
jb 0x10016dfc
mov esi, dword [esp + 0x3c]
lea edx, [edx + edx + 1]
mov edi, dword [esp + 0x30]
lea eax, [edx - 1]
cmp eax, esi
jae 0x10016e40
imul ecx, dword [esp + 0x2c]
movsx eax, byte [edx + ebx - 1]
movzx edx, ax
add ecx, edx
jmp 0x10016e40
xor ecx, ecx
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
movzx ebx, word [eax + edi*2]
mov eax, dword [edx + ebx*4]
add eax, dword [esp + 0x50]
cmp ecx, dword [esp + 0x40]
je 0x10017dad
inc edi
cmp edi, dword [esp + 0x38]
jb 0x10016dc5
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], 0
mov eax, dword [0x1003b034]
mov ebx, dword [0x1003b044]
mov dword [esp + 0x3c], ebx
mov esi, dword [esp + 0x4c]
mov ecx, 1
jmp 0x10016bf3
mov edx, 1
jmp 0x10016cf4
mov edx, 1
jmp 0x10016e26
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
jmp 0x10016e78
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
jmp 0x10016d46
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
add esi, eax
mov edx, dword [esp + 0x34]
lea edi, [eax + ebx]
lea ebx, [eax + ecx]
jmp 0x10016c59