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

Disassembly:
sub esp, 0x78
mov eax, dword [0x5dbef0]
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.00521a2b
mov edi, dword [esp + 0x38]
add esp, 0x1c
cmp eax, 0xffffff88
ja 0x522409
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
test eax, eax
je 0x5223d7
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.0051ff6c
add esp, 0xc
cmp eax, 0xffffff88
ja 0x5223ed
push dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0051b3a8
push dword [esp + 0x38]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0051b3a8
push dword [esp + 0x48]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0051b3a8
lea eax, [esp + 0x74]
push eax
call fcn.00513cc3
add esp, 0x28
cmp eax, 2
jg 0x5223bd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5223e3
dec eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00521b4d
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.005224d4
add esp, 0x28
cmp eax, 0xffffff88
ja 0x522409
add ebx, eax
lea eax, [esp + 0x50]
push eax
call fcn.00513cc3
pop ecx
cmp eax, 2
jle 0x522353
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], 0
jne 0x5223ed
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 0x5223f2
push 0xffffffffffffffba
jmp 0x5223ef
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x5223c4
push 0xffffffffffffffec
pop eax
jmp 0x522409
test ebp, ebp
je 0x522403
push ebp
push esi
push ebx
call fcn.00527800
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.00526e79
add esp, 0x78
ret