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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x51a0f8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc8
mov edi, dword [0x52b970]
xor eax, eax
push ebp
push 0x51a628
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
mov edx, 0x51a640
mov eax, dword [ebp - 4]
call fcn.0051aaa4
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, 0x51a64c
call fcn.0051aaa4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b24
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.0040476c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408b24
mov edx, dword [ebp - 0x18]
lea eax, [edi + 0x10]
call fcn.0040476c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.00408b24
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 0x20]
call fcn.0040476c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.00408b24
mov edx, dword [ebp - 0x20]
lea eax, [edi + 0x18]
call fcn.0040476c
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
call fcn.00408b24
mov edx, dword [ebp - 0x24]
lea eax, [edi + 0x28]
call fcn.0040476c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
call fcn.00408b24
mov edx, dword [ebp - 0x28]
lea eax, [edi + 8]
call fcn.0040476c
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
call fcn.00408b24
mov edx, dword [ebp - 0x2c]
lea eax, [edi + 0x30]
call fcn.0040476c
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
call fcn.00408b24
mov edx, dword [ebp - 0x30]
lea eax, [edi + 0x38]
call fcn.0040476c
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
call fcn.00408b24
mov edx, dword [ebp - 0x34]
lea eax, [edi + 0x40]
call fcn.0040476c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
call fcn.00408b24
mov edx, dword [ebp - 0x38]
lea eax, [edi + 0x48]
call fcn.0040476c
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
call fcn.00408b24
mov edx, dword [ebp - 0x3c]
lea eax, [edi + 0x50]
call fcn.0040476c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
call fcn.00408b24
mov edx, dword [ebp - 0x40]
lea eax, [edi + 0x58]
call fcn.0040476c
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
call fcn.00408b24
mov edx, dword [ebp - 0x44]
lea eax, [edi + 0x60]
call fcn.0040476c
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, 0x51a64c
call fcn.0051aaa4
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b24
mov eax, dword [ebp - 8]
cmp byte [eax], 0x24
je 0x51a2d9
mov eax, dword [ebp - 0x10]
call fcn.00405918
mov esi, eax
test esi, esi
jl 0x51a2d9
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + ebx*4]
mov edx, 0x51a658
call fcn.00404a24
inc ebx
dec esi
jne 0x51a2bf
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b24
mov eax, dword [ebp - 0x48]
call fcn.00409060
mov dword [edi + 0x64], eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408b24
mov eax, dword [ebp - 0x4c]
call fcn.00409060
mov dword [edi + 0x68], eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00408b24
mov eax, dword [ebp - 0x50]
call fcn.00409060
mov dword [edi + 0x6c], eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.00408b24
mov eax, dword [ebp - 0x54]
call fcn.00409060
mov dword [edi + 0x70], eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.00408b24
mov eax, dword [ebp - 0x58]
call fcn.00409060
mov dword [edi + 0x74], eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
call fcn.00408b24
mov eax, dword [ebp - 0x5c]
call fcn.00409060
mov dword [edi + 0x78], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
call fcn.00408b24
mov eax, dword [ebp - 0x60]
call fcn.00409060
mov dword [edi + 0x7c], eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
call fcn.00408b24
mov eax, dword [ebp - 0x64]
call fcn.00409060
mov dword [edi + 0x80], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
call fcn.00408b24
mov eax, dword [ebp - 0x68]
call fcn.00409060
mov dword [edi + 0x84], eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
call fcn.00408b24
mov eax, dword [ebp - 0x6c]
call fcn.00409060
mov dword [edi + 0x88], eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
call fcn.00408b24
mov eax, dword [ebp - 0x70]
call fcn.00409060
mov dword [edi + 0x8c], eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, 0x51a64c
call fcn.0051aaa4
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b24
mov eax, dword [ebp - 8]
cmp byte [eax], 0x24
je 0x51a44a
mov eax, dword [ebp - 0x10]
call fcn.00405918
mov esi, eax
test esi, esi
jl 0x51a44a
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + ebx*4]
mov edx, 0x51a658
call fcn.00404a24
inc ebx
dec esi
jne 0x51a430
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b24
mov eax, dword [ebp - 0x74]
call fcn.00409060
mov edx, dword [0x52b8e8]
mov dword [edx], eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b24
mov eax, dword [ebp - 0x78]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x14], eax
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408b24
mov eax, dword [ebp - 0x7c]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00408b24
mov eax, dword [ebp - 0x80]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x1c], eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.00408b24
mov eax, dword [ebp - 0x84]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x10], eax
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.00408b24
mov eax, dword [ebp - 0x88]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x20], eax
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
call fcn.00408b24
mov eax, dword [ebp - 0x8c]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x24], eax
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
call fcn.00408b24
mov eax, dword [ebp - 0x90]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x28], eax
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
call fcn.00408b24
mov eax, dword [ebp - 0x94]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 8], eax
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
call fcn.00408b24
mov eax, dword [ebp - 0x98]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x30], eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
call fcn.00408b24
mov eax, dword [ebp - 0x9c]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x3c], eax
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
call fcn.00408b24
mov eax, dword [ebp - 0xa0]
call fcn.00409060
mov edx, dword [0x52b76c]
mov dword [edx + 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a62f
lea eax, [ebp - 0xa0]
mov edx, 0x24
call fcn.0040473c
lea eax, [ebp - 0x10]
mov edx, dword [0x495630]
mov ecx, 2
call fcn.00405214
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040473c
ret