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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x519341
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5a4ac8], 0
je 0x519326
mov eax, dword [0x5a6768]
mov eax, dword [eax]
call fcn.00411258
mov dword [ebp - 0x34], eax
mov eax, dword [0x5a4ac8]
call fcn.00403c8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0x40
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call fcn.004026a8
mov dword [ebp - 0x28], eax
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov eax, dword [eax + 0x134]
call fcn.0044a55c
xor eax, eax
push ebp
push 0x51931f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5192dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
call fcn.00402b14
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov word [eax + 0xe], 1
add dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], 1
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x30]
add eax, 8
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
add dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov word [eax + 0xe], 1
add dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x409
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x30]
add eax, 8
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
add dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
add dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x30]
mov edx, dword [0x5a5f6c]
add eax, dword [edx]
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [0x5a4ac8]
call fcn.00403e50
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.00407a68
mov eax, 0x34
call fcn.004026a8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x34
call fcn.00402b14
mov eax, dword [0x5a6020]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.0040e090
mov eax, dword [0x5a6768]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x18], 1
mov eax, dword [ebp - 0xc]
mov word [eax + 0x19], 0x409
mov eax, dword [ebp - 0xc]
mov word [eax + 0x1b], 0
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x1d], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x21], 0x18
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0x18
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25], 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov eax, dword [eax + 0x134]
mov ecx, 0x519358
xor edx, edx
call fcn.0044a2d4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [0x5a5ca8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [0x5a5ca8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x26], eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00449514
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00449548
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.004495c0
mov eax, 0x34
call fcn.004026a8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x34
call fcn.00402b14
mov eax, dword [0x5a6020]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.0040e090
mov eax, dword [0x5a6768]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0x2710
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov word [eax + 0x19], 0x409
mov eax, dword [ebp - 0xc]
mov word [eax + 0x1b], 1
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x1d], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x21], 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0x18
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25], 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov eax, dword [eax + 0x134]
mov ecx, 0x51936c
mov edx, dword [ebp - 8]
call fcn.0044a264
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [0x5a5ca8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [0x5a5ca8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x26], eax
mov edx, 0x30
mov eax, dword [ebp - 8]
call fcn.00449514
mov edx, 0x30
mov eax, dword [ebp - 8]
call fcn.00449548
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.004495c0
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
call fcn.0044b100
mov dword [ebp - 0x3c], eax
mov eax, dword [0x5a6768]
mov eax, dword [eax]
call fcn.00411258
mov dword [ebp - 0x48], eax
mov eax, dword [0x5a62a0]
mov byte [eax], 1
mov edx, dword [ebp - 0x28]
mov eax, dword [0x5a6768]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0x4c], eax
jmp 0x51910a
mov eax, dword [0x5a6020]
mov eax, dword [eax]
mov edx, dword [ebp - 0x4c]
call fcn.0040e308
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x519107
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0xffffffff
je 0x519107
mov eax, dword [0x5a6768]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
inc dword [ebp - 0x4c]
mov eax, dword [0x5a6020]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x4c]
jg 0x5190d3
mov eax, dword [0x5a6768]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [0x5a682c]
mov dword [edx], eax
mov eax, dword [0x5a6768]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
inc word [eax + 0xe]
push 0
push 1
push 0
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
call fcn.005966d4
mov eax, dword [0x5a6768]
mov eax, dword [eax]
call fcn.00411258
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x51920a
mov dword [ebp - 0x44], 2
push 0x519378
mov eax, dword [0x5a6000]
mov edx, dword [ebp - 0x44]
push dword [eax + edx*4]
push 0x519394
push 0x5193a4
mov eax, dword [0x5a5e98]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*8 + 4]
lea ecx, [ebp - 0x54]
mov edx, 8
call fcn.00407424
push dword [ebp - 0x54]
push 0x5193bc
push 0x5193c8
lea ecx, [ebp - 0x58]
mov eax, dword [0x5a6464]
mov eax, dword [eax]
mov edx, 8
call fcn.00407424
push dword [ebp - 0x58]
push 0x5193e0
lea eax, [ebp - 0x50]
mov edx, 9
call fcn.00403d4c
mov edx, dword [ebp - 0x50]
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
call fcn.00581e4c
mov eax, dword [0x5a5e98]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov ecx, dword [0x5a6464]
mov ecx, dword [ecx]
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [0x5a6768]
mov eax, dword [eax]
call fcn.00411258
mov edx, dword [0x5a5d30]
mov edx, dword [edx]
lea edx, [edx + edx*4]
mov ecx, dword [0x5a5eb4]
mov ecx, dword [ecx + 8]
mov dword [ecx + edx*8 + 0x10], eax
mov eax, dword [0x5a5d30]
mov eax, dword [eax]
lea eax, [eax + eax*4]
mov edx, dword [0x5a5eb4]
mov edx, dword [edx + 8]
mov ecx, dword [0x5a6464]
mov ecx, dword [ecx]
mov dword [edx + eax*8 + 8], ecx
cmp dword [ebp - 0x40], 0
je 0x51926c
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov edx, dword [eax + 0x264]
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
call fcn.00590550
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov edx, dword [eax + 0x348]
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
call fcn.005945f8
mov eax, dword [0x5a62a0]
mov byte [eax], 0
mov eax, dword [0x5a60a8]
mov byte [eax], 1
mov edx, dword [0x5a60a8]
mov dl, byte [edx]
xor dl, 1
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x5bc]
call fcn.004239e8
mov edx, dword [0x5a60a8]
mov dl, byte [edx]
xor dl, 1
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x59c]
call fcn.0042b420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5192e6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519326
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.004026c0
mov eax, dword [0x5a5f5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov eax, dword [eax + 0x134]
call fcn.0044a5a4
mov eax, dword [0x5a5d04]
mov byte [eax], 1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519348
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00403a34
ret