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

Disassembly:
sub esp, 0x78
mov eax, dword [0x5c2e80]
xor eax, esp
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov ebp, dword [esp + 0x88]
lea eax, [edx + 0xc08]
push esi
push edi
mov edi, dword [esp + 0x94]
lea esi, [ecx + ebx]
push ecx
add edi, ebp
mov dword [esp + 0x14], ebx
push dword [esp + 0x14]
mov dword [esp + 0x24], edi
lea ecx, [edx + 0x804]
push dword [edx + 0x5454]
lea edi, [edx + 0x804]
mov dword [esp + 0x3c], eax
push ecx
mov dword [esp + 0x3c], edi
mov ebx, ebp
mov edi, dword [edx + 0x5414]
push eax
mov dword [esp + 0x50], edi
lea eax, [esp + 0x34]
mov edi, dword [edx + 0x5418]
mov dword [esp + 0x54], ebp
mov ebp, dword [edx + 0x54c8]
push edx
mov dword [esp + 0x40], esi
mov esi, dword [edx + 0x54b8]
add ebp, esi
mov dword [esp + 0x50], edi
mov edi, dword [edx + 0x541c]
push eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], edi
call fcn.00520413
mov edi, dword [esp + 0x38]
add esp, 0x1c
cmp eax, 0xffffff88
ja 0x520dc8
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
test eax, eax
je 0x520d96
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x78]
mov dword [eax + 0x5454], 1
add eax, 0x5424
mov esi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
sub eax, ecx
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x54]
push ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0051e945
add esp, 0xc
cmp eax, 0xffffff88
ja 0x520dac
push dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00519dbf
push dword [esp + 0x38]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00519dbf
push dword [esp + 0x48]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00519dbf
lea eax, [esp + 0x74]
push eax
call fcn.00512631
add esp, 0x28
cmp eax, 2
jg 0x520d7c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x520da2
dec eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00520535
pop ecx
pop ecx
push dword [esp + 0x34]
lea ecx, [esp + 0x18]
mov esi, eax
push dword [esp + 0x3c]
push dword [esp + 0x44]
push ebp
push ecx
sub esp, 0xc
mov edi, esp
push dword [esp + 0x3c]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00520e93
add esp, 0x28
cmp eax, 0xffffff88
ja 0x520dc8
add ebx, eax
lea eax, [esp + 0x50]
push eax
call fcn.00512631
pop ecx
cmp eax, 2
jle 0x520d12
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
jne 0x520dac
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
sub ebp, esi
sub edi, ebx
cmp ebp, edi
jbe 0x520db1
push 0xffffffffffffffba
jmp 0x520dae
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x520d83
push 0xffffffffffffffec
pop eax
jmp 0x520dc8
test ebp, ebp
je 0x520dc2
push ebp
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebx, ebp
sub ebx, dword [esp + 0x40]
mov eax, ebx
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005256c9
add esp, 0x78
ret