Function at 0x51e93c
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 0x51ef81
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5b9b30], 0
je 0x51ef66
mov eax, dword [0x5bb858]
mov eax, dword [eax]
call fcn.00411288
mov dword [ebp - 0x34], eax
mov eax, dword [0x5b9b30]
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 [0x5bb018]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov eax, dword [eax + 0x134]
call fcn.0044a2e4
xor eax, eax
push ebp
push 0x51ef5f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x51ef1c
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 [0x5bb024]
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 [0x5b9b30]
call fcn.00403e50
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.00407a70
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 [0x5bb0e0]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.0040e0c0
mov eax, dword [0x5bb858]
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 [0x5bb018]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov eax, dword [eax + 0x134]
mov ecx, 0x51ef98
xor edx, edx
call fcn.0044a05c
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 [0x5bad54]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [0x5bad54]
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.0044929c
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004492d0
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.00449348
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 [0x5bb0e0]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.0040e0c0
mov eax, dword [0x5bb858]
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 [0x5bb018]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov eax, dword [eax + 0x134]
mov ecx, 0x51efac
mov edx, dword [ebp - 8]
call fcn.00449fec
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 [0x5bad54]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [0x5bad54]
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.0044929c
mov edx, 0x30
mov eax, dword [ebp - 8]
call fcn.004492d0
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.00449348
mov eax, dword [0x5bb018]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
call fcn.0044ae88
mov dword [ebp - 0x3c], eax
mov eax, dword [0x5bb858]
mov eax, dword [eax]
call fcn.00411288
mov dword [ebp - 0x48], eax
mov eax, dword [0x5bb374]
mov byte [eax], 1
mov edx, dword [ebp - 0x28]
mov eax, dword [0x5bb858]
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 0x51ed4a
mov eax, dword [0x5bb0e0]
mov eax, dword [eax]
mov edx, dword [ebp - 0x4c]
call fcn.0040e338
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x51ed47
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0xffffffff
je 0x51ed47
mov eax, dword [0x5bb858]
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 [0x5bb0e0]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x4c]
jg 0x51ed13
mov eax, dword [0x5bb858]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [0x5bb924]
mov dword [edx], eax
mov eax, dword [0x5bb858]
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 [0x5bb018]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
call fcn.005ab568
mov eax, dword [0x5bb858]
mov eax, dword [eax]
call fcn.00411288
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x51ee4a
mov dword [ebp - 0x44], 2
push 0x51efb8
mov eax, dword [0x5bb0c0]
mov edx, dword [ebp - 0x44]
push dword [eax + edx*4]
push 0x51efd4
push 0x51efe4
mov eax, dword [0x5baf48]
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.0040742c
push dword [ebp - 0x54]
push 0x51effc
push 0x51f008
lea ecx, [ebp - 0x58]
mov eax, dword [0x5bb54c]
mov eax, dword [eax]
mov edx, 8
call fcn.0040742c
push dword [ebp - 0x58]
push 0x51f020
lea eax, [ebp - 0x50]
mov edx, 9
call fcn.00403d4c
mov edx, dword [ebp - 0x50]
mov eax, dword [0x5bb018]
mov eax, dword [eax]
call fcn.00595ed8
mov eax, dword [0x5baf48]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov ecx, dword [0x5bb54c]
mov ecx, dword [ecx]
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [0x5bb858]
mov eax, dword [eax]
call fcn.00411288
mov edx, dword [0x5bade0]
mov edx, dword [edx]
lea edx, [edx + edx*4]
mov ecx, dword [0x5baf6c]
mov ecx, dword [ecx + 8]
mov dword [ecx + edx*8 + 0x10], eax
mov eax, dword [0x5bade0]
mov eax, dword [eax]
lea eax, [eax + eax*4]
mov edx, dword [0x5baf6c]
mov edx, dword [edx + 8]
mov ecx, dword [0x5bb54c]
mov ecx, dword [ecx]
mov dword [edx + eax*8 + 8], ecx
cmp dword [ebp - 0x40], 0
je 0x51eeac
mov eax, dword [0x5bb018]
mov eax, dword [eax]
mov edx, dword [eax + 0x264]
mov eax, dword [0x5bb018]
mov eax, dword [eax]
call fcn.005a502c
mov eax, dword [0x5bb018]
mov eax, dword [eax]
mov edx, dword [eax + 0x348]
mov eax, dword [0x5bb018]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
call fcn.005a942c
mov eax, dword [0x5bb374]
mov byte [eax], 0
mov eax, dword [0x5bb16c]
mov byte [eax], 1
mov edx, dword [0x5bb16c]
mov dl, byte [edx]
xor dl, 1
mov eax, dword [0x5bb018]
mov eax, dword [eax]
mov eax, dword [eax + 0x5bc]
call fcn.004239c8
mov edx, dword [0x5bb16c]
mov dl, byte [edx]
xor dl, 1
mov eax, dword [0x5bb018]
mov eax, dword [eax]
mov eax, dword [eax + 0x59c]
call fcn.0042b400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ef26
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ef66
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.004026c0
mov eax, dword [0x5bb018]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov eax, dword [eax + 0x134]
call fcn.0044a32c
mov eax, dword [0x5badb0]
mov byte [eax], 1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ef88
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00403a34
ret