Function at 0x49b498
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x49b8b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
call fcn.004045c4
test eax, eax
jne 0x49b4ee
mov ebx, 0x2303
jmp 0x49b886
mov eax, ebx
call fcn.004045c4
test eax, eax
setne al
test al, al
je 0x49b785
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0x7001
jne 0x49b5f2
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.0049ab1c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404950
lea eax, [ebp - 0x1c]
call fcn.0040481c
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0049ab1c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404950
lea edx, [ebp - 0x13c]
mov eax, ebx
call fcn.00451760
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x28]
call fcn.0045a1e4
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x28]
call fcn.004575d4
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x12a]
call fcn.00468f10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
mov edx, dword [ebp - 0x10]
call fcn.00404950
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
call fcn.0040481c
push eax
lea eax, [ebp - 0x1c]
call fcn.0040481c
mov edx, eax
lea eax, [ebp - 0x12a]
pop ecx
call fcn.00468f40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 8
call fcn.00404304
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 4
mov edx, dword [0x4e2480]
mov edx, dword [edx]
call fcn.00404358
jmp 0x49b73e
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.0049ab1c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404950
lea eax, [ebp - 0x1c]
call fcn.0040481c
mov edx, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0049ab1c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404950
push ebp
call fcn.0049b440
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49b64f
mov ebx, 0x2303
jmp 0x49b886
xor eax, eax
push ebp
push 0x49b725
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49b714
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x1c]
call fcn.0040481c
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.004997f4
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00404950
lea eax, [ebp - 0x20]
call fcn.0040481c
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x1c]
call fcn.0040481c
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.004997f4
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00404950
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 4
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x2c]
call fcn.00404358
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 8
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x30]
call fcn.00404358
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
mov edx, dword [ebp - 0x20]
call fcn.00404358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b71b
lea eax, [ebp - 0x18]
call fcn.0040d948
ret
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
xor edx, edx
call fcn.0049accc
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00404950
lea eax, [ebp - 0x20]
call fcn.0040481c
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0049accc
lea eax, [ebp - 0x24]
mov edx, 0x49b8cc
call fcn.0040439c
jmp 0x49b7ca
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.0049ab1c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00404950
lea eax, [ebp - 0x20]
call fcn.0040481c
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0049ab1c
lea eax, [ebp - 0x24]
mov edx, 0x49b8ec
call fcn.0040439c
cmp byte [ebp + 8], 0
je 0x49b858
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
lea eax, [ebp - 0x20]
call fcn.0040481c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.0047688c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404950
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
call fcn.0040481c
push eax
lea eax, [ebp - 0x20]
call fcn.0040481c
mov edx, dword [ebp - 0x14]
pop ecx
call fcn.0047688c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jge 0x49b839
mov ebx, 0x2308
jmp 0x49b84e
lea eax, [ebp - 0x1c]
call fcn.0040481c
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.00402c74
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x49b886
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
jge 0x49b869
mov ebx, 0x2308
jmp 0x49b87e
lea eax, [ebp - 0x20]
call fcn.0040481c
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
call fcn.00402c74
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b8b9
lea eax, [ebp - 0x140]
mov edx, dword [0x4565dc]
call fcn.004056f4
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404328
ret