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

Disassembly:
sub esp, 0x7f8
mov eax, dword [0x5dcef0]
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.00528860
push 0x48
lea eax, [esp + 0x48]
push esi
push eax
call fcn.00528860
push ebp
call fcn.0050707e
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 0x521af3
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.00521b0f
add esp, 0x1c
mov dword [esp + 0x34], eax
cmp eax, 0xffffff88
ja 0x521af6
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
ja 0x521af3
mov edi, ebp
jmp 0x521993
dec edi
cmp dword [esp + edi*4 + 0x80], esi
je 0x521992
xor ecx, ecx
mov dword [esp + 0x28], esi
lea edx, [edi + 1]
inc ecx
mov ebx, esi
cmp edx, ecx
jbe 0x5219c2
mov eax, ebx
add ebx, dword [esp + ecx*4 + 0x80]
mov dword [esp + ecx*4 + 0x3c], eax
inc ecx
cmp ecx, edx
jb 0x5219ac
mov dword [esp + 0x28], ebx
mov eax, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], eax
jbe 0x521a07
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 0x5219d2
lea edx, [edi + 1]
xor ebx, ebx
mov dword [esp + 0x3c], esi
inc ebx
cmp edx, ebx
jbe 0x521a35
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 0x521a18
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 0x521aa9
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 0x521a8e
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 0x521a73
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 0x521a66
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.0051eca4
push 4
lea eax, [esp + 0x3c]
mov byte [esp + 0x3e], bl
push eax
push dword [esp + 0x58]
mov byte [esp + 0x45], 1
call fcn.005282e0
mov eax, dword [esp + 0x60]
add esp, 0x2c
jmp 0x521af6
push 0xffffffffffffffd4
pop eax
mov ecx, dword [esp + 0x804]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00527959
add esp, 0x7f8
ret