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

Disassembly:
push 0xffffffffffffffff
push 0x7c0324
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
lea eax, [edx*8]
xor esi, esi
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x1c], ecx
push edi
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8 + 0x120]
mov dword [esp + 0x14], ecx
mov edi, ecx
xor edx, edx
mov ecx, edi
mov eax, dword [ecx]
cmp eax, esi
je 0x5195d1
mov eax, dword [eax + 0x38]
cmp eax, esi
je 0x5195d1
mov ebp, dword [esp + 0x54]
mov eax, dword [eax]
cmp eax, dword [ebp]
je 0x51989c
inc edx
add ecx, 4
cmp edx, 6
jl 0x5195b5
inc ebx
add edi, 0x18
cmp ebx, 7
jl 0x5195b1
mov edx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x18], edi
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x14], ecx
cmp dword [eax], esi
je 0x519618
inc ecx
add eax, 4
cmp ecx, 6
mov dword [esp + 0x14], ecx
jl 0x5195f5
inc edi
add edx, 0x18
cmp edi, 7
mov dword [esp + 0x18], edi
jl 0x5195ed
jmp 0x51989c
push 0x48
call fcn.007a2d8d
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, esi
mov dword [esp + 0x4c], esi
je 0x51965a
mov dl, byte [esp + 0x58]
lea ecx, [ebp + 4]
push esi
mov byte [ecx], dl
call fcn.00404e60
mov al, byte [esp + 0x58]
lea ecx, [ebp + 0x20]
mov byte [esp + 0x4c], 1
push esi
mov byte [ecx], al
call fcn.00404e60
mov byte [esp + 0x4c], 0
jmp 0x51965c
xor ebp, ebp
or ecx, 0xffffffff
mov edi, 0x870c08
mov dword [esp + 0x4c], ecx
xor eax, eax
mov word [ebp + 0x14], si
mov word [ebp + 0x16], si
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x1c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x20]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.00401b40
test al, al
je 0x5196ba
mov eax, dword [ebx + 4]
mov ecx, edi
mov edx, ecx
mov esi, 0x870c08
mov edi, eax
mov eax, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00405070
xor esi, esi
mov ecx, dword [esp + 0x54]
mov dl, byte [esp + 0x58]
push 0x100
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], ecx
mov byte [esp + 0x17], 0
mov byte [esp + 0x28], dl
call fcn.007a2d8d
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.005ab150
add esp, 8
inc edi
dec ebx
jne 0x5196ee
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 0x51974b
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 0x82d510
push esi
call fcn.007a3155
add esp, 0x10
jmp 0x519759
push 0x82d56c
push esi
call fcn.007a3155
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.00401b40
test al, al
je 0x51979a
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.007a2d8d
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x4c], 4
je 0x5197bd
mov ecx, eax
call fcn.00509c60
jmp 0x5197bf
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.0040bee0
mov ecx, dword [ebp]
push 0x3f800000
push 0x3f800000
push 0
push 0
call fcn.0040c600
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.00631ce0
test eax, eax
je 0x519869
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 eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
push esi
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx + edx + 0xc]
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
mov dword [ebx + edx*4], ebp
mov dword [esp + 0x50], 0xffffffff
call fcn.007a02e0
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