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

Disassembly:
push 0xffffffffffffffff
push 0x745324
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov edx, dword [esp + 0x4c]
push ebx
push ebp
push esi
push edi
lea eax, [edx*8]
xor ebx, ebx
xor edi, edi
sub eax, edx
mov dword [esp + 0x20], ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8 + 0x114]
mov dword [esp + 0x14], ecx
mov esi, ecx
xor edx, edx
mov ecx, esi
mov eax, dword [ecx]
cmp eax, ebx
je 0x501731
mov eax, dword [eax + 0x30]
cmp eax, ebx
je 0x501731
mov ebp, dword [esp + 0x54]
mov eax, dword [eax]
cmp eax, dword [ebp]
je 0x5019f4
inc edx
add ecx, 4
cmp edx, 6
jl 0x501715
inc edi
add esi, 0x18
cmp edi, 7
jl 0x501711
mov edx, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x18], esi
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x14], ecx
cmp dword [eax], ebx
je 0x501778
inc ecx
add eax, 4
cmp ecx, 6
mov dword [esp + 0x14], ecx
jl 0x501755
inc esi
add edx, 0x18
cmp esi, 7
mov dword [esp + 0x18], esi
jl 0x50174d
jmp 0x5019f4
push 0x40
call fcn.00726f70
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
mov dword [esp + 0x4c], ebx
je 0x5017ba
mov dl, byte [esp + 0x58]
lea ecx, [ebp + 4]
push ebx
mov byte [ecx], dl
call fcn.00404760
mov al, byte [esp + 0x58]
lea ecx, [ebp + 0x20]
mov byte [esp + 0x4c], 1
push ebx
mov byte [ecx], al
call fcn.00404760
mov byte [esp + 0x4c], 0
jmp 0x5017bc
xor ebp, ebp
or ecx, 0xffffffff
mov edi, 0x7c4d88
mov dword [esp + 0x4c], ecx
xor eax, eax
mov word [ebp + 0x14], bx
mov word [ebp + 0x16], bx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x20]
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov dword [esp + 0x24], esi
call fcn.00401450
test al, al
je 0x501816
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x7c4d88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00404970
mov ecx, dword [esp + 0x54]
mov dl, byte [esp + 0x58]
push 0x100
mov dword [ebp + 0x30], ecx
mov byte [esp + 0x17], 0
mov byte [esp + 0x28], dl
call fcn.00726f70
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov edi, esi
mov ebx, 0x100
lea eax, [esp + 0x13]
push eax
push edi
call fcn.0058f910
add esp, 8
inc edi
dec ebx
jne 0x501844
lea eax, [esi + 0x100]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x58]
mov dword [esp + 0x4c], 3
test al, al
je 0x5018a1
mov ecx, dword [esp + 0x54]
mov eax, 0x51eb851f
mov ecx, dword [ecx]
mul ecx
shr edx, 5
push edx
mov eax, ecx
xor edx, edx
mov ecx, 0x64
div ecx
push edx
push 0x7a5170
push esi
call fcn.00727335
add esp, 0x10
jmp 0x5018af
push 0x7a5b0c
push esi
call fcn.00727335
add esp, 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, edx
push ebx
call fcn.00401450
test al, al
je 0x5018f0
mov edi, dword [ebp + 8]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x28]
mov dword [ebp + 0xc], ebx
add ebx, eax
mov byte [ebx], 0
push 0x100
call fcn.00726f70
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x4c], 4
je 0x501913
mov ecx, eax
call fcn.004f2790
jmp 0x501915
xor eax, eax
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x4c], 3
mov dword [ebp], eax
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0x70]
mov ecx, dword [ebp]
lea eax, [ebp + 4]
push eax
call fcn.0040b630
mov ecx, dword [ebp]
push 0x3f800000
push 0x3f800000
push 0
push 0
call fcn.0040bcf0
mov eax, dword [ebp]
push 0x20
mov dword [eax + 0x78], 0xb
mov ecx, dword [ebp]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [esp + 0x14]
push ecx
push 7
mov ecx, ebx
call fcn.005fddd0
test eax, eax
je 0x5019bf
lea edi, [eax + 0x88]
mov edx, edi
mov eax, dword [edx]
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
mov ecx, dword [edx + 0xc]
push eax
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp]
mov edx, dword [ecx]
call dword [edx + 0x30]
mov eax, dword [ebp]
mov ecx, dword [edi]
add eax, 0x98
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
push esi
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x18]
add eax, edx
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
mov dword [ebx + edx*4 + 0x114], ebp
mov dword [esp + 0x50], 0xffffffff
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc