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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64a428
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6a56e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x30], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00492280
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00492280
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x32], 0
mov ecx, dword [ebp + 0xc]
call fcn.00492280
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x34], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.00487c70
mov eax, dword [ebp + 0xc]
add eax, 0x32
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040b0c0
push eax
call fcn.004a4940
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4a5d53
mov eax, dword [ebp - 0x28]
jmp 0x4a614f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0x32]
mov byte [edx + 0x33], cl
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004a6440
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4a5d80
mov eax, dword [ebp - 0x2c]
jmp 0x4a614f
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00499b70
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x14]
test ecx, ecx
je 0x4a5dca
mov edx, dword [ebp + 0xc]
add edx, 0x30
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040b0c0
push eax
call fcn.004a48e0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4a5dca
mov eax, dword [ebp - 0x30]
jmp 0x4a614f
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x30]
test edx, edx
je 0x4a5f90
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.0040b0c0
test eax, eax
je 0x4a5f90
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.0040b0c0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4a5e34
mov eax, dword [ebp - 0x38]
jmp 0x4a614f
cmp dword [ebp - 0x3c], 1
jne 0x4a5f90
lea ecx, [ebp - 0x7c]
call fcn.004910b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.0040b0c0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x7c]
push ecx
push 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4a5e96
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00506250
mov eax, dword [ebp - 0x60]
jmp 0x4a614f
movzx edx, word [ebp - 0x7c]
cmp edx, 8
jne 0x4a5eb6
cmp dword [ebp - 0x74], 0
je 0x4a5eb6
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.0049b610
jmp 0x4a5edc
movzx ecx, word [ebp - 0x7c]
test ecx, ecx
je 0x4a5edc
mov dword [ebp - 0x64], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00506250
mov eax, dword [ebp - 0x64]
jmp 0x4a614f
mov byte [ebp - 0xd], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4a5f09
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00492280
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x33], 1
jmp 0x4a5f81
mov eax, dword [ebp + 0xc]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004a6440
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4a5f42
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00506250
mov eax, dword [ebp - 0x68]
jmp 0x4a614f
mov eax, dword [ebp + 0xc]
add eax, 0x33
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040b0c0
push eax
call fcn.004a4940
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4a5f81
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00506250
mov eax, dword [ebp - 0x6c]
jmp 0x4a614f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00506250
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x31]
test ecx, ecx
jne 0x4a5fa7
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x4a602e
mov ecx, dword [ebp + 0xc]
call fcn.0040b0c0
push eax
call fcn.004a5800
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x4a602e
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x18
call fcn.00492230
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00494ad0
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00499cf0
cmp dword [ebp - 0x20], 0
je 0x4a6017
mov ecx, dword [ebp + 0xc]
call fcn.0040b0c0
mov edx, dword [ebp - 0x20]
mov ax, word [eax + edx*2 - 2]
movzx ecx, ax
push ecx
call fcn.004a1740
movzx edx, al
test edx, edx
jne 0x4a6017
mov dword [ebp - 0x50], 0
jmp 0x4a601e
mov dword [ebp - 0x50], 1
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x50]
mov byte [eax + 0x33], cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x30], 1
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x38]
test ecx, ecx
je 0x4a613a
mov edx, dword [ebp + 0xc]
add edx, 0xc
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004a66d0
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4a6068
mov eax, dword [ebp - 0x58]
jmp 0x4a614f
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x31]
test ecx, ecx
jne 0x4a607f
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x4a6138
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.0048abf0
movzx eax, al
test eax, eax
jne 0x4a6138
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.00491b00
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call fcn.0040b0c0
push eax
call fcn.004a5800
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4a6127
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00494ad0
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x24
call fcn.00499cf0
cmp dword [ebp - 0x18], 0
je 0x4a6104
mov ecx, dword [ebp - 0x24]
call fcn.0040b0c0
mov edx, dword [ebp - 0x18]
mov ax, word [eax + edx*2 - 2]
movzx ecx, ax
push ecx
call fcn.004a1740
movzx edx, al
test edx, edx
jne 0x4a6104
mov dword [ebp - 0x5c], 0
jmp 0x4a610b
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x5c]
mov byte [eax + 0x33], cl
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x30], 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00492230
cmp dword [ebp - 0x18], 0
jne 0x4a6138
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
call fcn.0049ea70
jmp 0x4a614d
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
call fcn.00509de0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8