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

Disassembly:
sub esp, 0x78
mov eax, dword [0x5dcef0]
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.0052250b
mov edi, dword [esp + 0x38]
add esp, 0x1c
cmp eax, 0xffffff88
ja 0x522ee9
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
test eax, eax
je 0x522eb7
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.00520a4c
add esp, 0xc
cmp eax, 0xffffff88
ja 0x522ecd
push dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0051be88
push dword [esp + 0x38]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0051be88
push dword [esp + 0x48]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0051be88
lea eax, [esp + 0x74]
push eax
call fcn.005147a3
add esp, 0x28
cmp eax, 2
jg 0x522e9d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x522ec3
dec eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0052262d
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.00522fb4
add esp, 0x28
cmp eax, 0xffffff88
ja 0x522ee9
add ebx, eax
lea eax, [esp + 0x50]
push eax
call fcn.005147a3
pop ecx
cmp eax, 2
jle 0x522e33
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
jne 0x522ecd
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 0x522ed2
push 0xffffffffffffffba
jmp 0x522ecf
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x522ea4
push 0xffffffffffffffec
pop eax
jmp 0x522ee9
test ebp, ebp
je 0x522ee3
push ebp
push esi
push ebx
call fcn.005282e0
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.00527959
add esp, 0x78
ret