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

Disassembly:
sub esp, 0x7f8
mov eax, dword [0x5c2e80]
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 sub.VCRUNTIME140.dll_memset
push 0x48
lea eax, [esp + 0x48]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push ebp
call fcn.00504f4e
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 0x51f9ef
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.0051fa0b
add esp, 0x1c
mov dword [esp + 0x34], eax
cmp eax, 0xffffff88
ja 0x51f9f2
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
ja 0x51f9ef
mov edi, ebp
jmp 0x51f88f
dec edi
cmp dword [esp + edi*4 + 0x80], esi
je 0x51f88e
xor ecx, ecx
mov dword [esp + 0x28], esi
lea edx, [edi + 1]
inc ecx
mov ebx, esi
cmp edx, ecx
jbe 0x51f8be
mov eax, ebx
add ebx, dword [esp + ecx*4 + 0x80]
mov dword [esp + ecx*4 + 0x3c], eax
inc ecx
cmp ecx, edx
jb 0x51f8a8
mov dword [esp + 0x28], ebx
mov eax, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], eax
jbe 0x51f903
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 0x51f8ce
lea edx, [edi + 1]
xor ebx, ebx
mov dword [esp + 0x3c], esi
inc ebx
cmp edx, ebx
jbe 0x51f931
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 0x51f914
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 0x51f9a5
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 0x51f98a
mov ebx, dword [esp + 0x10]
mov esi, eax
mov ebp, edi
mov eax, dword [esi + ebx]
shr eax, cl
mov dword [esi], eax
lea esi, [esi + 4]
sub ebp, 1
jne 0x51f96f
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 0x51f962
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.0051cbe9
push 4
lea eax, [esp + 0x3c]
mov byte [esp + 0x3e], bl
push eax
push dword [esp + 0x58]
mov byte [esp + 0x45], 1
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x60]
add esp, 0x2c
jmp 0x51f9f2
push 0xffffffffffffffd4
pop eax
mov ecx, dword [esp + 0x804]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005256c9
add esp, 0x7f8
ret