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

Disassembly:
shr edx, 1
mov dword [esp + 0xa70], edx
je 0x1000650f
xor edx, edx
lea ecx, [esp + eax*2 + 0x83c]
mov dword [esp + 0xa48], ecx
lea edi, [ebx + eax]
mov dword [esp + 0x18], eax
xor ecx, ecx
mov dword [esp + 0xa44], ebx
mov dword [esp + 0xa50], esi
mov eax, dword [esp + 0xa48]
movsx esi, byte [ecx + edi]
lea ebx, [edx*4]
neg ebx
inc edx
mov word [eax + ebx], si
movsx esi, byte [ecx + edi - 1]
add ecx, 0xfffffffe
mov word [eax + ebx - 2], si
cmp edx, dword [esp + 0xa70]
jb 0x10005154
mov eax, dword [esp + 0x18]
lea ecx, [edx + edx]
neg ecx
lea edi, [edx + edx + 1]
mov ebx, dword [esp + 0xa44]
add ecx, eax
mov esi, dword [esp + 0xa50]
lea edx, [edi - 1]
cmp edx, eax
jae 0x100051cb
lea ecx, [ebx + eax]
sub ecx, edi
movsx edx, byte [ecx + 1]
mov ecx, eax
sub ecx, edi
add edi, edi
neg edi
mov dword [esp + 0xa4c], edx
lea edx, [esp + eax*2 + 0x83c]
mov eax, dword [esp + 0xa4c]
test byte [esp + ecx*2], ah
or al, byte [eax]
add byte [esi - 0x77], ah
inc esp
pop ss
invalid
movsx edx, byte [ecx + ebx]
mov word [esp + ecx*2 + 0x83c], dx
push eax
lea eax, [esp + 0x840]
call fcn.10003ec0
mov ecx, eax
test ecx, ecx
jbe 0x1000524c
mov edx, dword [esp + 0xca0]
xor eax, eax
mov ebx, dword [edx + 0x11c]
mov edx, ecx
shr edx, 1
je 0x100062e5
mov dword [esp + 0xa50], esi
xor edi, edi
imul eax, ebx
movzx esi, word [esp + edi*4 + 0x83c]
add eax, esi
imul eax, ebx
movzx esi, word [esp + edi*4 + 0x83e]
inc edi
add eax, esi
cmp edi, edx
jb 0x1000520c
mov esi, dword [esp + 0xa50]
lea edi, [edi + edi + 1]
lea edx, [edi - 1]
cmp edx, ecx
jae 0x1000524e
imul ebx, eax
movzx eax, word [esp + edi*2 + 0x83a]
add eax, ebx
jmp 0x1000524e
xor eax, eax
mov edx, dword [esp + 0xa58]
mov ecx, dword [esp + 0xa5c]
movzx ebx, word [edx + esi*2 - 2]
mov edx, dword [esp + 0xa54]
add edx, dword [ecx + ebx*4]
cmp eax, dword [esp + 0xa64]
jne 0x1000500a
mov eax, dword [esp + 0xc98]
mov esi, dword [esp + 0xc5c]
mov ebx, dword [esp + 0xca0]
mov dword [eax + 0x5c], edx
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x44]
mov dword [esp + 0xc6c], eax
mov edi, dword [edx + 0x14]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x18], edi
mov ecx, dword [edx + esi + 0x78]
mov edx, dword [ecx + esi + 0x20]
mov edi, dword [ecx + esi + 0x1c]
add edx, esi
mov ecx, dword [ecx + esi + 0x24]
add edi, esi
add ecx, esi
xor esi, esi
mov dword [esp + 0xc60], ecx
mov dword [esp + 0xc64], edi
mov dword [esp + 0xc68], edx
add esp, 0xfffffff8
inc esi
mov ecx, dword [esp + 0xc70]
lea eax, [esp + 0xa4c]
mov ebx, dword [eax + 0x218]
mov edx, 0x208
add ebx, dword [ecx + esi*4 - 4]
call fcn.100041b0
mov eax, ebx
push eax
call fcn.10003e88
mov ecx, eax
test eax, eax
je fcn.10005496
cmp eax, 6
jbe 0x100053e0
mov dword [esp + 0x10], ecx
lea edx, [eax + ebx]
neg edx
lea ecx, [esp + eax*2 + 0xa44]
add edx, ecx
lea edi, [eax + eax]
mov dword [esp + 0xc70], ecx
mov ecx, dword [esp + 0x10]
cmp edx, edi
jg 0x10005344
neg edx
cmp edx, eax
jle 0x100053e0
mov edi, eax
shr edi, 1
je 0x100062ef
xor ecx, ecx
lea edx, [ebx + eax]
mov dword [esp + 0xc58], esi
mov dword [esp + 0xc74], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc4c], ebx
mov esi, ecx
mov ebx, dword [esp + 0xc70]
lea eax, [ecx*4]
neg eax
inc ecx
movsx edi, byte [esi + edx]
mov word [ebx + eax], di
movsx edi, byte [esi + edx - 1]
add esi, 0xfffffffe
mov word [ebx + eax - 2], di
cmp ecx, dword [esp + 0xc74]
jb 0x1000536e
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx + 1]
mov ebx, dword [esp + 0xc4c]
mov esi, dword [esp + 0xc58]
lea ecx, [edx - 1]
cmp ecx, eax
jae 0x100053d3
lea ecx, [ebx + eax]
sub ecx, edx
add edx, edx
neg edx
movsx edi, byte [ecx + 1]
mov ecx, dword [esp + 0xc70]
mov word [edx + ecx + 2], di
invalid
lea edx, [eax + 1]
sub eax, edx
lea ecx, [eax + 1]
jmp fcn.10005496
mov edx, eax
shr edx, 1
mov dword [esp + 0xc78], edx
je 0x10006505
xor edx, edx
lea ecx, [esp + eax*2 + 0xa44]
mov dword [esp + 0xc50], ecx
lea edi, [ebx + eax]
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc58], esi
mov eax, dword [esp + 0xc50]
movsx esi, byte [ecx + edi]
lea ebx, [edx*4]
neg ebx
inc edx
mov word [eax + ebx], si
movsx esi, byte [ecx + edi - 1]
inc dword [ebx - 0x7699013f]
je 0x10005455
invalid
lea edx, [edi - 1]
cmp edx, eax
jae fcn.10005496
lea ecx, [ebx + eax]
mov edi, 1
jmp 0x10005236
mov edx, 1
jmp 0x100053b3
mov edi, 1
jmp 0x10005464
mov edi, 1
jmp 0x10005199