Function at 0x4e0114
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 0x4e011d
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 0x4e07cf
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.00498008
mov eax, dword [ebp - 4]
test eax, eax
je 0x4e015f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4e016f
mov dword [ebp - 0x24], 0x1f0b
jmp 0x4e07a7
mov dl, 1
mov eax, dword [0x49b99c]
call fcn.0049c4b0
mov dword [ebp - 0x3c], eax
xor edx, edx
push ebp
push 0x4e0725
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.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x3c]
call fcn.0049cc14
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.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0049cc14
mov esi, eax
mov byte [esi + 4], 6
mov edx, dword [0x5e31dc]
mov eax, esi
call fcn.0049bd80
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0049cc14
mov esi, eax
mov byte [esi + 4], 0xa0
mov dl, 1
mov eax, esi
call fcn.0049cb70
mov edx, eax
mov eax, esi
call fcn.0049cc14
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.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.0049cc14
mov edi, eax
mov byte [edi + 4], 0x30
xor edx, edx
mov eax, edi
call fcn.0049cb70
mov edx, eax
mov eax, edi
call fcn.0049cc14
mov esi, eax
mov byte [esi + 4], 6
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0049bd80
mov dl, 1
mov eax, edi
call fcn.0049cb70
mov edx, eax
mov eax, edi
call fcn.0049cc14
mov edi, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebx + 0x2c]
mov edx, 8
call fcn.00493a58
mov edx, dword [ebx + 0x1c]
mov ecx, edi
mov eax, dword [ebp - 0xc]
call fcn.004dd2dc
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebx + 0x24]
mov eax, ebx
call fcn.004df67c
test al, al
jne 0x4e02a1
mov dword [ebp - 0x24], 0x1f0c
call fcn.00404dc8
jmp 0x4e07a7
cmp byte [ebp - 0x4d], 0
jne 0x4e02e7
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.004dee94
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.004dee94
mov dl, 1
mov eax, dword [0x49b99c]
call fcn.0049c4b0
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.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0049cc14
mov esi, eax
mov byte [esi + 4], 2
mov edx, 0x4e07ec
mov eax, esi
call fcn.0049bd80
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0049cc14
mov esi, eax
mov byte [esi + 4], 0x30
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00498230
mov eax, dword [ebp - 4]
test eax, eax
je 0x4e0354
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4e0369
mov dword [ebp - 0x24], 0x1f0f
call fcn.00404dc8
jmp 0x4e07a7
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405b08
cmp dword [ebp + 8], 4
jne 0x4e0420
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.00405b08
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call fcn.00405b08
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.004e1634
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x38]
call fcn.00405b08
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call fcn.00405b08
lea eax, [ebp - 0x18]
call fcn.004058d8
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
call fcn.004058d8
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004e1634
test al, al
jne 0x4e0408
mov dword [ebp - 0x24], 0x1f0c
call fcn.00404dc8
jmp 0x4e07a7
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x38]
call fcn.00405b08
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call fcn.00405b08
jmp 0x4e0482
cmp dword [ebp + 8], 0
je 0x4e0432
cmp dword [ebp + 8], 0xb
je 0x4e0432
cmp dword [ebp + 8], 0xc
jne 0x4e045a
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.00405b08
cmp byte [ebp - 0x4d], 0
jne 0x4e0482
lea eax, [ebp - 0x18]
call fcn.004058d8
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
call fcn.0040312c
jmp 0x4e0482
cmp dword [ebp + 8], 6
jne 0x4e0471
mov dword [ebp - 0x24], 0x1f0f
call fcn.00404dc8
jmp 0x4e07a7
mov dword [ebp - 0x24], 0x1f0f
call fcn.00404dc8
jmp 0x4e07a7
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004e9a70
xor edx, edx
mov eax, dword [ebp - 0x48]
call fcn.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0049cc14
mov esi, eax
mov byte [esi + 4], 4
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.00497500
mov edx, dword [ebp - 0x54]
mov eax, esi
call fcn.0049bd80
mov dl, 1
mov eax, dword [ebp - 0x48]
call fcn.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x48]
call fcn.0049cc14
mov esi, eax
mov dl, 1
mov eax, dword [0x4d545c]
call fcn.004d54bc
mov dword [ebp - 0x4c], eax
xor edx, edx
push ebp
push 0x4e06cb
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 1
mov eax, dword [ebp - 0x4c]
call fcn.004d55c4
mov ecx, 0x4e07f8
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.004d5570
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.004d5598
push eax
push 0x4e080c
lea eax, [ebp - 0x5c]
mov edi, dword [ebx + 0x30]
mov edx, edi
shr edx, 0x18
and edx, 0xff
call fcn.004055d0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov edx, edi
shr edx, 0x10
and edx, 0xff
call fcn.004055d0
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
mov edx, edi
shr edx, 8
and edx, 0xff
call fcn.004055d0
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
mov edx, edi
and edx, 0xff
call fcn.004055d0
push dword [ebp - 0x68]
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.0040577c
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.004d5674
mov byte [esi + 4], 0xa0
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
call fcn.00405b08
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.00405b08
lea eax, [ebp - 0x18]
call fcn.004058d8
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.00404468
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.00405b08
mov eax, dword [ebp - 8]
test eax, eax
je 0x4e05fc
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x4d], 0
jne 0x4e0659
lea eax, [ebp - 0x18]
call fcn.004058d8
mov edi, eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4e061b
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 8]
call fcn.004058d8
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.004e0f80
test al, al
jne 0x4e0659
mov dword [ebp - 0x24], 0x1f0c
call fcn.00404dc8
call fcn.00404dc8
jmp 0x4e07a7
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call fcn.00405b08
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.0049cc14
mov esi, eax
mov byte [esi + 4], 4
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 8]
call fcn.00497500
mov edx, dword [ebp - 0x6c]
mov eax, esi
call fcn.0049bd80
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.0049cb70
mov edx, eax
mov eax, dword [ebp - 0x40]
call fcn.0049cc14
mov esi, eax
mov cl, 0x31
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.004d5674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e06d2
mov eax, dword [ebp - 0x4c]
call fcn.00404468
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e07d6
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.0040540c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.0040540c
ret