Function at 0x4a170c
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
lea eax, [ebp - 0x1a0]
mov edx, dword [0x41f228]
call fcn.00406590
mov esi, dword [ebp + 8]
add esi, 0xfffffe60
mov ebx, dword [0x4d8f50]
mov edi, dword [0x4d8e34]
xor eax, eax
push ebp
push 0x4a1ab2
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [ebx]
mov eax, dword [ebx]
inc eax
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0x41f394]
call fcn.00406d74
add esp, 4
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8c24]
mov ecx, dword [ecx]
mov dword [edx + eax*4], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d899c]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 8], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d9090]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0xc], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8940]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x10], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8bc4]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x14], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d904c]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x18], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8d7c]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x1c], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8ffc]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x20], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8d0c]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x24], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d9044]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x28], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8e94]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x2c], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8e50]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x30], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8b0c]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x34], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d90a0]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x38], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8b7c]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x3c], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d89a0]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x40], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d909c]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x44], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
mov ecx, dword [0x4d8878]
mov ecx, dword [ecx]
mov dword [edx + eax*4 + 0x48], ecx
imul eax, dword [ebx], 0x13
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*4 + 4], ecx
mov eax, dword [0x4d8e14]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
shl eax, 0x18
mov edx, dword [0x4d8e14]
mov edx, dword [edx]
movzx edx, byte [edx + 2]
shl edx, 0x10
add eax, edx
mov edx, dword [0x4d8e14]
mov edx, dword [edx]
movzx edx, byte [edx + 1]
shl edx, 8
add eax, edx
mov edx, dword [0x4d8e14]
mov edx, dword [edx]
movzx edx, byte [edx]
add eax, edx
mov edx, dword [0x4d8c24]
mov dword [edx], eax
mov eax, dword [0x4d8e14]
mov eax, dword [eax]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
test eax, eax
je 0x4a1904
sub eax, 4
mov eax, dword [eax]
cmp eax, 4
jle 0x4a1921
mov eax, dword [0x4d8e14]
mov ecx, 4
mov edx, 1
call fcn.00406010
mov al, 1
jmp 0x4a1923
xor eax, eax
mov edx, dword [0x4d8a84]
mov byte [edx], 1
test al, al
je 0x4a1938
mov eax, dword [0x4d8a84]
mov byte [eax], 0
mov edi, 1
jmp 0x4a19d3
mov eax, esi
xor ecx, ecx
mov edx, 0x4a1ac0
call fcn.004cce34
lea eax, [ebp + edi*4 - 0x1a0]
mov edx, dword [0x4d8c28]
mov edx, dword [edx]
call fcn.00405b44
mov eax, dword [0x4d8a88]
mov eax, dword [eax]
mov dword [ebp + edi*4 - 0x160], eax
mov eax, dword [0x4d8ca0]
movzx eax, byte [eax]
mov byte [ebp + edi - 0x10], al
mov eax, dword [0x4d8e64]
mov edx, dword [eax]
mov dword [ebp + edi*8 - 0x120], edx
mov edx, dword [eax + 4]
mov dword [ebp + edi*8 - 0x11c], edx
mov eax, dword [0x4d8a78]
movzx eax, byte [eax]
mov byte [ebp + edi - 0xa0], al
mov eax, dword [0x4d8a78]
movzx eax, byte [eax]
sub al, 0x62
je 0x4a19b9
sub al, 0xd
je 0x4a19b9
sub al, 4
jne 0x4a19d2
mov eax, dword [0x4d8acc]
mov eax, dword [eax]
mov dword [ebp + edi*4 - 0x90], eax
mov eax, dword [0x4d8f10]
mov eax, dword [eax]
mov dword [ebp + edi*4 - 0x50], eax
inc edi
cmp edi, 0x10
jge 0x4a19e6
mov eax, dword [0x4d8a84]
cmp byte [eax], 0
je 0x4a1942
dec edi
mov eax, dword [0x4d8b08]
mov dword [eax], edi
mov edi, 1
mov eax, dword [0x4d8b08]
cmp edi, dword [eax]
jg 0x4a1a93
lea eax, [esi + edi*4]
mov edx, dword [ebp + edi*4 - 0x1a0]
call fcn.00405b44
mov eax, dword [ebp + edi*4 - 0x160]
mov dword [esi + edi*4 + 0x40], eax
mov eax, dword [ebp + edi*8 - 0x120]
mov dword [esi + edi*8 + 0x80], eax
mov eax, dword [ebp + edi*8 - 0x11c]
mov dword [esi + edi*8 + 0x84], eax
movzx eax, byte [ebp + edi - 0x10]
mov byte [esi + edi + 0x190], al
movzx ebx, byte [ebp + edi - 0xa0]
mov byte [esi + edi + 0x100], bl
mov eax, dword [0x4d8a78]
mov byte [eax], bl
mov eax, dword [0x4d8a78]
movzx eax, byte [eax]
sub al, 0x62
je 0x4a1a6c
sub al, 0xd
je 0x4a1a6c
sub al, 4
jne 0x4a1a85
mov eax, dword [ebp + edi*4 - 0x90]
mov dword [esi + edi*4 + 0x110], eax
mov eax, dword [ebp + edi*4 - 0x50]
mov dword [esi + edi*4 + 0x150], eax
inc edi
mov eax, dword [0x4d8b08]
cmp edi, dword [eax]
jle 0x4a1a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1ab9
lea eax, [ebp - 0x1a0]
mov edx, dword [0x41f228]
call fcn.00406660
ret