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

Disassembly:
sub esp, 0x7f8
mov eax, dword [0x5dbef0]
xor eax, esp
mov dword [esp + 0x7f4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x804]
lea eax, [esp + 0x78]
push esi
push edi
mov edi, dword [esp + 0x810]
xor esi, esi
push 0x44
push esi
push eax
mov dword [esp + 0x3c], ebp
call fcn.00527d80
push 0x48
lea eax, [esp + 0x48]
push esi
push eax
call fcn.00527d80
push ebp
call fcn.0050659e
movzx ebx, al
add esp, 0x1c
mov dword [esp + 0x18], eax
lea eax, [ebp + 4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
cmp ebx, 0x10
ja 0x521013
push dword [esp + 0x814]
lea eax, [esp + 0x28]
push edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x518]
push 0x100
push eax
call fcn.0052102f
add esp, 0x1c
mov dword [esp + 0x34], eax
cmp eax, 0xffffff88
ja 0x521016
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
ja 0x521013
mov edi, ebp
jmp 0x520eb3
dec edi
cmp dword [esp + edi*4 + 0x80], esi
je 0x520eb2
xor ecx, ecx
mov dword [esp + 0x28], esi
lea edx, [edi + 1]
inc ecx
mov ebx, esi
cmp edx, ecx
jbe 0x520ee2
mov eax, ebx
add ebx, dword [esp + ecx*4 + 0x80]
mov dword [esp + ecx*4 + 0x3c], eax
inc ecx
cmp ecx, edx
jb 0x520ecc
mov dword [esp + 0x28], ebx
mov eax, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], eax
jbe 0x520f27
mov bl, byte [esp + eax + 0x504]
movzx ecx, bl
mov edx, dword [esp + ecx*4 + 0x3c]
lea eax, [edx + 1]
mov byte [esp + edx*2 + 0x605], bl
mov dword [esp + ecx*4 + 0x3c], eax
mov eax, dword [esp + 0x10]
mov byte [esp + edx*2 + 0x604], al
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x520ef2
lea edx, [edi + 1]
xor ebx, ebx
mov dword [esp + 0x3c], esi
inc ebx
cmp edx, ebx
jbe 0x520f55
mov ecx, dword [esp + 0x1c]
sub ecx, ebp
mov eax, dword [esp + ebx*4 + 0x80]
mov edx, esi
shl eax, cl
add esi, eax
mov dword [esp + ebx*4 + 0xc4], edx
inc ebx
lea edx, [edi + 1]
inc ecx
cmp ebx, edx
jb 0x520f38
mov ebx, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, edi
mov eax, ebx
inc ecx
sub eax, ecx
inc eax
mov dword [esp + 0x14], eax
cmp ecx, eax
jae 0x520fc9
imul eax, ecx, 0x44
lea ebx, [esp + 0xc8]
add eax, ebx
mov ebx, dword [esp + 0x14]
imul esi, ecx, 0xffffffbc
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
cmp edx, 1
jbe 0x520fae
mov ebx, dword [esp + 0x10]
mov esi, eax
mov ebp, edi
mov eax, dword [ebx + esi]
shr eax, cl
mov dword [esi], eax
lea esi, [esi + 4]
sub ebp, 1
jne 0x520f93
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
inc ecx
add eax, 0x44
sub esi, 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
cmp ecx, ebx
jb 0x520f86
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
lea eax, [ebp + 1]
push eax
push edi
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x618]
push eax
push ebx
push dword [esp + 0x48]
call fcn.0051e1c4
push 4
lea eax, [esp + 0x3c]
mov byte [esp + 0x3e], bl
push eax
push dword [esp + 0x58]
mov byte [esp + 0x45], 1
call fcn.00527800
mov eax, dword [esp + 0x60]
add esp, 0x2c
jmp 0x521016
push 0xffffffffffffffd4
pop eax
mov ecx, dword [esp + 0x804]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00526e79
add esp, 0x7f8
ret