Function at 0x49883b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x4985dc
add esp, 0xfffffff0
call fcn.0040380c
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4988b6
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004034bc
cmp byte [ebp + 8], 0
je 0x49876f
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 6
mov eax, ebx
sub eax, 0x7002
je 0x498621
dec eax
je 0x49864d
dec eax
je 0x498676
jmp 0x49869f
mov eax, dword [ebp - 4]
mov dword [eax + 8], 8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4e2538]
mov edx, dword [edx]
call fcn.00404358
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7002
jmp 0x4986da
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x18
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4e2244]
mov edx, dword [edx]
call fcn.00404358
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7003
jmp 0x4986da
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x10
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4e259c]
mov edx, dword [edx]
call fcn.00404358
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7004
jmp 0x4986da
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004087e4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, 0x4983a4
call fcn.0040630c
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x498200]
call fcn.0040bfc0
call fcn.00403c74
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x7252
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x7301
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x14
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x7101
mov eax, dword [ebp - 4]
add eax, 0x28
mov edx, 8
call fcn.00404950
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.0040481c
mov edx, 8
call fcn.0045b1e4
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 1
mov dl, 1
mov eax, dword [0x45c9f8]
call fcn.0045d3f4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x498768
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], 0x30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49883b
lea eax, [ebp - 0xc]
call fcn.0040d948
ret
mov eax, ebx
sub eax, 0x7002
je 0x49877f
sub eax, 2
je 0x4987b2
jmp 0x4987e5
mov eax, dword [ebp - 4]
mov dword [eax + 8], 8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4e2538]
mov edx, dword [edx]
call fcn.00404358
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7002
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 2
jmp 0x498820
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x10
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4e259c]
mov edx, dword [edx]
call fcn.00404358
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7004
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 5
jmp 0x498820
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.004087e4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
lea edx, [ebp - 0x24]
mov eax, 0x4983a4
call fcn.0040630c
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x498200]
call fcn.0040bfc0
call fcn.00403c74
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x7251
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x7101
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 4]
add eax, 0x2c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov edx, dword [edx*4 + 0x4e0be4]
call fcn.00404358
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x800
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, 8
call fcn.00404950
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.0040481c
mov edx, 8
call fcn.0045b1e4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00499320
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.00404358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4988bd
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404328
ret