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

Disassembly:
sub esp, 0x78
mov eax, dword [0x5dcf00]
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.005225d4
mov edi, dword [esp + 0x38]
add esp, 0x1c
cmp eax, 0xffffff88
ja 0x522f8b
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
test eax, eax
je 0x522f59
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.00520b15
add esp, 0xc
cmp eax, 0xffffff88
ja 0x522f6f
push dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0051bfae
push dword [esp + 0x38]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0051bfae
push dword [esp + 0x48]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0051bfae
lea eax, [esp + 0x74]
push eax
call fcn.00514851
add esp, 0x28
cmp eax, 2
jg 0x522f3f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x522f65
dec eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.005226f6
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.00523056
add esp, 0x28
cmp eax, 0xffffff88
ja 0x522f8b
add ebx, eax
lea eax, [esp + 0x50]
push eax
call fcn.00514851
pop ecx
cmp eax, 2
jle 0x522ed5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
jne 0x522f6f
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 0x522f74
push 0xffffffffffffffba
jmp 0x522f71
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x522f46
push 0xffffffffffffffec
pop eax
jmp 0x522f8b
test ebp, ebp
je 0x522f85
push ebp
push esi
push ebx
call fcn.005282a0
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.00527919
add esp, 0x78
ret