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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x50bd41
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50c3f3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x10], 0
sete byte [ebp - 0x4d]
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x24]
call fcn.004c6abc
mov eax, dword [ebp - 4]
test eax, eax
je 0x50bd83
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x50bd93
mov dword [ebp - 0x24], 0x1f0b
jmp 0x50c3cb
mov dl, 1
mov eax, dword [0x4bf660]
call fcn.004c0174
mov dword [ebp - 0x3c], eax
xor edx, edx
push ebp
push 0x50c349
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x3c]
mov byte [eax + 4], 0x30
mov dl, 1
mov eax, dword [ebp - 0x3c]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x3c]
call fcn.004c08d8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov byte [eax + 4], 0x30
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.004c08d8
mov esi, eax
mov byte [esi + 4], 6
mov edx, dword [0x5b2134]
mov eax, esi
call fcn.004bfa44
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.004c08d8
mov esi, eax
mov byte [esi + 4], 0xa0
mov dl, 1
mov eax, esi
call fcn.004c0834
mov edx, eax
mov eax, esi
call fcn.004c08d8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov byte [eax + 4], 0x30
mov dl, 1
mov eax, dword [ebp - 0x44]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.004c08d8
mov edi, eax
mov byte [edi + 4], 0x30
xor edx, edx
mov eax, edi
call fcn.004c0834
mov edx, eax
mov eax, edi
call fcn.004c08d8
mov esi, eax
mov byte [esi + 4], 6
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004bfa44
mov dl, 1
mov eax, edi
call fcn.004c0834
mov edx, eax
mov eax, edi
call fcn.004c08d8
mov edi, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebx + 0x2c]
mov edx, 8
call fcn.004c3220
mov edx, dword [ebx + 0x1c]
mov ecx, edi
mov eax, dword [ebp - 0xc]
call fcn.00508f18
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebx + 0x24]
mov eax, ebx
call fcn.0050b2a0
test al, al
jne 0x50bec5
mov dword [ebp - 0x24], 0x1f0c
call fcn.0040463c
jmp 0x50c3cb
cmp byte [ebp - 0x4d], 0
jne 0x50bf0b
push 1
push 0x7101
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0050aad0
push 2
push 0x7101
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0050aad0
mov dl, 1
mov eax, dword [0x4bf660]
call fcn.004c0174
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov byte [eax + 4], 0x30
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.004c08d8
mov esi, eax
mov byte [esi + 4], 2
mov edx, 0x50c410
mov eax, esi
call fcn.004bfa44
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.004c08d8
mov esi, eax
mov byte [esi + 4], 0x30
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004c6ce4
mov eax, dword [ebp - 4]
test eax, eax
je 0x50bf78
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x50bf8d
mov dword [ebp - 0x24], 0x1f0f
call fcn.0040463c
jmp 0x50c3cb
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405370
cmp dword [ebp + 8], 4
jne 0x50c044
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x38]
call fcn.00405370
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call fcn.00405370
push 0
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0050d258
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x38]
call fcn.00405370
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call fcn.00405370
lea eax, [ebp - 0x18]
call fcn.00405140
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
call fcn.00405140
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0050d258
test al, al
jne 0x50c02c
mov dword [ebp - 0x24], 0x1f0c
call fcn.0040463c
jmp 0x50c3cb
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x38]
call fcn.00405370
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call fcn.00405370
jmp 0x50c0a6
cmp dword [ebp + 8], 0
je 0x50c056
cmp dword [ebp + 8], 0xb
je 0x50c056
cmp dword [ebp + 8], 0xc
jne 0x50c07e
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.00405370
cmp byte [ebp - 0x4d], 0
jne 0x50c0a6
lea eax, [ebp - 0x18]
call fcn.00405140
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
call fcn.004030c8
jmp 0x50c0a6
cmp dword [ebp + 8], 6
jne 0x50c095
mov dword [ebp - 0x24], 0x1f0f
call fcn.0040463c
jmp 0x50c3cb
mov dword [ebp - 0x24], 0x1f0f
call fcn.0040463c
jmp 0x50c3cb
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00515694
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.004c08d8
mov esi, eax
mov byte [esi + 4], 4
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.004c5fb4
mov edx, dword [ebp - 0x54]
mov eax, esi
call fcn.004bfa44
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.004c08d8
mov esi, eax
mov dl, 1
mov eax, dword [0x501098]
call fcn.005010f8
mov dword [ebp - 0x4c], eax
xor edx, edx
push ebp
push 0x50c2ef
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.00501200
mov ecx, 0x50c41c
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.005011ac
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.005011d4
push eax
push 0x50c430
lea eax, [ebp - 0x5c]
mov edi, dword [ebx + 0x30]
mov edx, edi
shr edx, 0x18
and edx, 0xff
call fcn.00404e28
push dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov edx, edi
shr edx, 0x10
and edx, 0xff
call fcn.00404e28
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
mov edx, edi
shr edx, 8
and edx, 0xff
call fcn.00404e28
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
mov edx, edi
and edx, 0xff
call fcn.00404e28
push dword [ebp - 0x68]
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.00404fe4
mov edx, dword [ebp - 0x58]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov cl, 0x31
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.005012b0
mov byte [esi + 4], 0xa0
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.00405370
lea ecx, [ebp - 0x34]
xor edx, edx
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.00405370
lea eax, [ebp - 0x18]
call fcn.00405140
mov edx, eax
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x48]
call fcn.00403cdc
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.00405370
mov eax, dword [ebp - 8]
test eax, eax
je 0x50c220
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x4d], 0
jne 0x50c27d
lea eax, [ebp - 0x18]
call fcn.00405140
mov edi, eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x50c23f
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 8]
call fcn.00405140
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x24]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
mov edx, edi
mov eax, ebx
call fcn.0050cba4
test al, al
jne 0x50c27d
mov dword [ebp - 0x24], 0x1f0c
call fcn.0040463c
call fcn.0040463c
jmp 0x50c3cb
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call fcn.00405370
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.004c08d8
mov esi, eax
mov byte [esi + 4], 4
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 8]
call fcn.004c5fb4
mov edx, dword [ebp - 0x6c]
mov eax, esi
call fcn.004bfa44
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.004c0834
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.004c08d8
mov esi, eax
mov cl, 0x31
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.005012b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c2f6
mov eax, dword [ebp - 0x4c]
call fcn.00403cdc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c3fa
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.00404c64
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404c64
ret