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

Disassembly:
inc esi
mov ecx, dword [esp + 0x444]
lea eax, [esp + 0x224]
mov ebx, dword [eax + 0x82c]
mov edx, 0x208
add ebx, dword [ecx + esi*4]
call fcn.10004b77
mov eax, ebx
call fcn.1000485f
mov ecx, eax
test eax, eax
je 0x1000524d
cmp eax, 6
jbe 0x10005190
mov dword [esp + 0x10], ecx
lea edx, [eax + ebx]
neg edx
lea ecx, [esp + eax*2 + 0x224]
add edx, ecx
lea edi, [eax + eax]
mov dword [esp + 0x44c], ecx
mov ecx, dword [esp + 0x10]
cmp edx, edi
jg 0x100050ee
neg edx
cmp edx, eax
jle 0x10005190
mov edi, eax
shr edi, 1
je 0x100052f5
xor ecx, ecx
lea edx, [ebx + eax]
mov dword [esp + 0x438], esi
mov dword [esp + 0x450], edi
mov dword [esp + 0x42c], eax
mov dword [esp + 0x430], ebx
mov esi, ecx
mov ebx, dword [esp + 0x44c]
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 + 0x450]
jb 0x1000511b
mov eax, dword [esp + 0x42c]
lea edx, [ecx + ecx + 1]
mov ebx, dword [esp + 0x430]
mov esi, dword [esp + 0x438]
lea ecx, [edx - 1]
cmp ecx, eax
jae 0x10005183
lea ecx, [ebx + eax]
sub ecx, edx
add edx, edx
neg edx
movsx edi, byte [ecx + 1]
mov ecx, dword [esp + 0x44c]
mov word [edx + ecx + 2], di
lea edx, [eax + 1]
sub eax, edx
lea ecx, [eax + 1]
jmp 0x1000524d
mov edx, eax
shr edx, 1
mov dword [esp + 0x454], edx
je 0x10006c17
xor edx, edx
lea ecx, [esp + eax*2 + 0x224]
mov dword [esp + 0x434], ecx
lea edi, [ebx + eax]
mov dword [esp + 0x42c], eax
xor ecx, ecx
mov dword [esp + 0x430], ebx
mov dword [esp + 0x438], esi
mov eax, dword [esp + 0x434]
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 + 0x454]
jb 0x100051d2
mov eax, dword [esp + 0x42c]
lea ecx, [edx + edx]
neg ecx
lea edx, [edx + edx + 1]
mov ebx, dword [esp + 0x430]
add ecx, eax
mov esi, dword [esp + 0x438]
lea edi, [edx - 1]
cmp edi, eax
jae 0x1000524d
mov dword [esp + 0x430], ebx
lea edi, [ebx + eax]
sub edi, edx
lea ebx, [edx + edx]
neg ebx
lea ecx, [esp + eax*2 + 0x224]
movsx edi, byte [edi + 1]
mov word [ebx + ecx + 2], di
mov ecx, eax
mov ebx, dword [esp + 0x430]
sub ecx, edx
lea eax, [esp + 0x224]
movsx edx, byte [ecx + ebx]
mov word [esp + ecx*2 + 0x224], dx
call fcn.10004893
mov edx, eax
test edx, edx
jbe 0x100052c9
mov eax, dword [esp + 0xc98]
xor ecx, ecx
mov ebx, dword [eax + 0x98]
mov eax, edx
shr eax, 1
je 0x100052ff
mov dword [esp + 0x438], esi
xor edi, edi
imul ecx, ebx
movzx esi, word [esp + edi*4 + 0x224]
add ecx, esi
imul ecx, ebx
movzx esi, word [esp + edi*4 + 0x226]
inc edi
add ecx, esi
cmp edi, eax
jb 0x10005289
mov esi, dword [esp + 0x438]
lea edi, [edi + edi + 1]
lea eax, [edi - 1]
cmp eax, edx
jae 0x100052cb
imul ebx, ecx
movzx ecx, word [esp + edi*2 + 0x222]
add ecx, ebx
jmp 0x100052cb
xor ecx, ecx
mov eax, dword [esp + 0x43c]
mov edx, dword [esp + 0x440]
movzx ebx, word [eax + esi*2]
mov eax, dword [esp + 0xa50]
add eax, dword [edx + ebx*4]
cmp ecx, dword [esp + 0x448]
je 0x10005306
jmp 0x10005084
mov edx, 1
jmp 0x10005163
mov edi, 1
jmp 0x100052b3
mov dword [esp + 0x860], eax
mov ebx, dword [esp + 0xc98]
push 0x80
push 0x40
call dword [esp + 0xc8c]
mov dword [esp + 0xc88], eax
mov esi, dword [esp + 0xc58]
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x650], eax
mov edx, dword [esi + 0x3c]
mov dword [esp + 0xc98], ebx
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 + 0x644], ecx
mov dword [esp + 0x648], edi
mov dword [esp + 0x64c], edx
jmp 0x10005374
inc esi
mov ecx, dword [esp + 0x64c]
lea eax, [esp + 0x42c]
mov ebx, dword [eax + 0x82c]
mov edx, 0x208
add ebx, dword [ecx + esi*4]
call fcn.10004b77
mov eax, ebx
call fcn.1000485f
mov ecx, eax
test eax, eax
je 0x1000553c
cmp eax, 6
jbe 0x1000547f
mov dword [esp + 0x10], ecx
lea edx, [eax + ebx]
neg edx
lea ecx, [esp + eax*2 + 0x42c]
add edx, ecx
lea edi, [eax + eax]
mov dword [esp + 0x654], ecx
mov ecx, dword [esp + 0x10]
cmp edx, edi
jg 0x100053dd
neg edx
cmp edx, eax
jle 0x1000547f
mov edi, eax
shr edi, 1
je 0x100055e4
xor ecx, ecx
lea edx, [ebx + eax]
mov dword [esp + 0x640], esi
mov dword [esp + 0x658], edi
mov dword [esp + 0x634], eax
mov dword [esp + 0x638], ebx
mov esi, ecx
mov ebx, dword [esp + 0x654]
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 + 0x658]
jb 0x1000540a
mov eax, dword [esp + 0x634]
lea edx, [ecx + ecx + 1]
mov ebx, dword [esp + 0x638]
mov esi, dword [esp + 0x640]
lea ecx, [edx - 1]
cmp ecx, eax
jae 0x10005472
invalid
invalid