Function at 0x511c30
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x604cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edx, ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x68]
lea edi, [edx + 0x24]
mov ecx, 0x40
mov eax, dword [ebx]
lea esi, [ebx + 0x24]
mov dword [edx], eax
mov ebp, dword [ebx]
mov eax, dword [ebx + 4]
add ebp, ebx
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 0xc], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
mov dword [edx + 0x10], eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [edx + 0x14], eax
lea eax, [ebx + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
mov dword [edx + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [edx + 0x1c], eax
lea eax, [ebx + 0x20]
add ebx, 0x124
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
mov dword [edx + 0x20], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebx
rep movsd dword es:[edi], dword [esi]
cmp ebx, ebp
jbe 0x511ce6
xor al, al
jmp 0x511efa
mov ebp, dword [esp + 0x30]
xor esi, esi
xor edi, edi
mov ebx, edx
mov al, byte [esi + ebp]
test al, al
je 0x511d94
cmp al, 0x2c
jne 0x511d87
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov eax, esi
mov dword [esp + 0x60], 0
sub eax, edi
mov dword [esp + 0x38], 0x4ca328
push eax
lea eax, [edi + ebp]
push eax
lea ecx, [esp + 0x40]
call fcn.00542a00
movzx eax, byte [0x637930]
lea ecx, [ebx + 0x124]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x64], 1
push eax
push 0
lea eax, [esp + 0x3c]
push eax
call fcn.004f3a60
inc edi
mov dword [esp + 0x60], 0xffffffff
add edi, esi
mov dword [esp + 0x38], 0x4ca328
cmp dword [esp + 0x50], 0x10
jb 0x511d87
push dword [esp + 0x3c]
call fcn.005df995
add esp, 4
inc esi
cmp esi, 0x100
jb 0x511cf0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
push dword [esi]
lea ecx, [edi + 0x12c]
push ebx
call fcn.004f3510
add ebx, dword [esi]
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
ja 0x511cdf
mov eax, dword [esp + 0x20]
xor esi, esi
cmp dword [eax], esi
jle 0x511e27
jmp 0x511dd0
mov ebp, dword [edi + 0x150]
lea ecx, [edi + 0x150]
push ebx
push dword [ebp + 4]
push ebp
call fcn.0050bb70
mov edx, eax
mov ecx, 0xccccccb
mov eax, dword [edi + 0x154]
sub ecx, eax
cmp ecx, 1
jb 0x511f1b
lea ecx, [eax + 1]
add ebx, 0xc
mov dword [edi + 0x154], ecx
mov dword [ebp + 4], edx
mov eax, dword [edx + 4]
mov ebp, dword [esp + 0x18]
mov dword [eax], edx
cmp ebx, ebp
ja 0x511cdf
mov eax, dword [esp + 0x20]
inc esi
cmp esi, dword [eax]
jl 0x511dd0
mov eax, dword [esp + 0x24]
xor esi, esi
cmp dword [eax], esi
jle 0x511e88
mov ebp, dword [edi + 0x158]
lea ecx, [edi + 0x158]
push ebx
push dword [ebp + 4]
push ebp
call fcn.0050bb70
mov edx, eax
mov ecx, 0xccccccb
mov eax, dword [edi + 0x15c]
sub ecx, eax
cmp ecx, 1
jb 0x511f1b
lea ecx, [eax + 1]
add ebx, 0xc
mov dword [edi + 0x15c], ecx
mov dword [ebp + 4], edx
mov eax, dword [edx + 4]
mov ebp, dword [esp + 0x18]
mov dword [eax], edx
cmp ebx, ebp
ja 0x511cdf
mov eax, dword [esp + 0x24]
inc esi
cmp esi, dword [eax]
jl 0x511e31
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp dword [eax], esi
jle 0x511ef3
mov edi, dword [esp + 0x14]
jmp 0x511ea0
mov ebp, dword [edi + 0x160]
lea ecx, [edi + 0x160]
push ebx
push dword [ebp + 4]
push ebp
call fcn.0050bb70
mov edx, eax
mov ecx, 0xccccccb
mov eax, dword [edi + 0x164]
sub ecx, eax
cmp ecx, 1
jb 0x511f1b
lea ecx, [eax + 1]
add ebx, 0xc
mov dword [edi + 0x164], ecx
mov dword [ebp + 4], edx
mov eax, dword [edx + 4]
mov ebp, dword [esp + 0x18]
mov dword [eax], edx
cmp ebx, ebp
ja 0x511cdf
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, dword [eax]
jl 0x511ea0
xor eax, eax
cmp ebx, ebp
sete al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005e0482
add esp, 0x50
ret 4
push 0x4ca6bc
call fcn.005dba74
int3