Function at 0x49f854
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49fb61
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004087c4
mov edx, dword [ebp - 0xc]
mov eax, 0x49fb78
call fcn.00404b10
test eax, eax
jle 0x49f8a2
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a06dc
jmp 0x49fb46
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004087c4
mov edx, dword [ebp - 0x10]
mov eax, 0x49fb88
call fcn.00404b10
test eax, eax
jle 0x49f8cc
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a06dc
jmp 0x49fb46
xor edx, edx
push ebp
push 0x49fb3c
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x4825a4]
call fcn.00484ecc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
call fcn.0048c178
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
call fcn.004768dc
xor edx, edx
push ebp
push 0x49fb2b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x330]
mov dword [edx + 0x70], eax
mov cl, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00485078
mov eax, dword [ebp - 4]
add eax, 0x368
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x1c]
call fcn.00404560
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
mov ebx, dword [eax]
call dword [ebx + 0x2c]
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
call fcn.0048c330
mov edi, eax
dec edi
test edi, edi
jl 0x49f9ce
inc edi
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x330]
mov edx, esi
call fcn.0048c338
cmp byte [eax + 0x10], 0
je 0x49f9ca
mov bl, 1
jmp 0x49f9ce
inc esi
dec edi
jne 0x49f9b0
test bl, bl
je 0x49f9ee
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
mov ebx, dword [eax]
call dword [ebx + 0x2c]
jmp 0x49fa00
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
call fcn.00468480
mov eax, dword [ebp - 4]
call fcn.004a0390
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a01f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.004941a4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x368], 0
je 0x49faca
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
add eax, 0x318
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x368]
call fcn.00404560
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov dl, 1
call fcn.00494d1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov byte [eax + 0x31e], 1
xor edx, edx
push ebp
push 0x49faa5
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00493f30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call fcn.0049426c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49faca
mov eax, dword [ebp - 4]
mov byte [eax + 0x35c], 1
mov eax, dword [ebp - 4]
call fcn.004a1110
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [eax + 0x214]
cmp edx, dword [eax + 0x210]
jne 0x49fb05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
xor edx, edx
call fcn.00430a90
jmp 0x49fb15
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov dl, 1
call fcn.00430a90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fb32
lea eax, [ebp - 8]
call fcn.0040dd48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fb68
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404530
ret