Function at 0x519318
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 0x519320
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ba8
mov edi, dword [0x52a970]
xor eax, eax
push ebp
push 0x519850
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
mov edx, 0x519868
mov eax, dword [ebp - 4]
call fcn.00519ccc
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, 0x519874
call fcn.00519ccc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b04
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.0040474c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408b04
mov edx, dword [ebp - 0x18]
lea eax, [edi + 0x10]
call fcn.0040474c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.00408b04
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 0x20]
call fcn.0040474c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.00408b04
mov edx, dword [ebp - 0x20]
lea eax, [edi + 0x18]
call fcn.0040474c
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
call fcn.00408b04
mov edx, dword [ebp - 0x24]
lea eax, [edi + 0x28]
call fcn.0040474c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
call fcn.00408b04
mov edx, dword [ebp - 0x28]
lea eax, [edi + 8]
call fcn.0040474c
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
call fcn.00408b04
mov edx, dword [ebp - 0x2c]
lea eax, [edi + 0x30]
call fcn.0040474c
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
call fcn.00408b04
mov edx, dword [ebp - 0x30]
lea eax, [edi + 0x38]
call fcn.0040474c
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
call fcn.00408b04
mov edx, dword [ebp - 0x34]
lea eax, [edi + 0x40]
call fcn.0040474c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
call fcn.00408b04
mov edx, dword [ebp - 0x38]
lea eax, [edi + 0x48]
call fcn.0040474c
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
call fcn.00408b04
mov edx, dword [ebp - 0x3c]
lea eax, [edi + 0x50]
call fcn.0040474c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
call fcn.00408b04
mov edx, dword [ebp - 0x40]
lea eax, [edi + 0x58]
call fcn.0040474c
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
call fcn.00408b04
mov edx, dword [ebp - 0x44]
lea eax, [edi + 0x60]
call fcn.0040474c
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, 0x519874
call fcn.00519ccc
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b04
mov eax, dword [ebp - 8]
cmp byte [eax], 0x24
je 0x519501
mov eax, dword [ebp - 0x10]
call fcn.004058f8
mov esi, eax
test esi, esi
jl 0x519501
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, 0x519880
call fcn.00404a04
inc ebx
dec esi
jne 0x5194e7
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b04
mov eax, dword [ebp - 0x48]
call fcn.00409040
mov dword [edi + 0x64], eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408b04
mov eax, dword [ebp - 0x4c]
call fcn.00409040
mov dword [edi + 0x68], eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00408b04
mov eax, dword [ebp - 0x50]
call fcn.00409040
mov dword [edi + 0x6c], eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.00408b04
mov eax, dword [ebp - 0x54]
call fcn.00409040
mov dword [edi + 0x70], eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.00408b04
mov eax, dword [ebp - 0x58]
call fcn.00409040
mov dword [edi + 0x74], eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
call fcn.00408b04
mov eax, dword [ebp - 0x5c]
call fcn.00409040
mov dword [edi + 0x78], eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
call fcn.00408b04
mov eax, dword [ebp - 0x60]
call fcn.00409040
mov dword [edi + 0x7c], eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
call fcn.00408b04
mov eax, dword [ebp - 0x64]
call fcn.00409040
mov dword [edi + 0x80], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
call fcn.00408b04
mov eax, dword [ebp - 0x68]
call fcn.00409040
mov dword [edi + 0x84], eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
call fcn.00408b04
mov eax, dword [ebp - 0x6c]
call fcn.00409040
mov dword [edi + 0x88], eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
call fcn.00408b04
mov eax, dword [ebp - 0x70]
call fcn.00409040
mov dword [edi + 0x8c], eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, 0x519874
call fcn.00519ccc
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b04
mov eax, dword [ebp - 8]
cmp byte [eax], 0x24
je 0x519672
mov eax, dword [ebp - 0x10]
call fcn.004058f8
mov esi, eax
test esi, esi
jl 0x519672
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, 0x519880
call fcn.00404a04
inc ebx
dec esi
jne 0x519658
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b04
mov eax, dword [ebp - 0x74]
call fcn.00409040
mov edx, dword [0x52a8e8]
mov dword [edx], eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00408b04
mov eax, dword [ebp - 0x78]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x14], eax
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
call fcn.00408b04
mov eax, dword [ebp - 0x7c]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx], eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00408b04
mov eax, dword [ebp - 0x80]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x1c], eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.00408b04
mov eax, dword [ebp - 0x84]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x10], eax
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
call fcn.00408b04
mov eax, dword [ebp - 0x88]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x20], eax
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
call fcn.00408b04
mov eax, dword [ebp - 0x8c]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x24], eax
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
call fcn.00408b04
mov eax, dword [ebp - 0x90]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x28], eax
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
call fcn.00408b04
mov eax, dword [ebp - 0x94]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 8], eax
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
call fcn.00408b04
mov eax, dword [ebp - 0x98]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x30], eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
call fcn.00408b04
mov eax, dword [ebp - 0x9c]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x3c], eax
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
call fcn.00408b04
mov eax, dword [ebp - 0xa0]
call fcn.00409040
mov edx, dword [0x52a76c]
mov dword [edx + 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519857
lea eax, [ebp - 0xa0]
mov edx, 0x24
call fcn.0040471c
lea eax, [ebp - 0x10]
mov edx, dword [0x4948a8]
mov ecx, 2
call fcn.004051f4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040471c
ret