Function at 0x4ea048
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 0x4ea06c
add esp, 0xfffffff0
call fcn.004047cc
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ea346
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404438
cmp byte [ebp + 8], 0
je 0x4ea1ff
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 6
mov eax, ebx
sub eax, 0x7002
je 0x4ea0b1
dec eax
je 0x4ea0dd
dec eax
je 0x4ea106
jmp 0x4ea12f
mov eax, dword [ebp - 4]
mov dword [eax + 8], 8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5fb390]
mov edx, dword [edx]
call fcn.0040543c
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7002
jmp 0x4ea16a
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x18
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5fb328]
mov edx, dword [edx]
call fcn.0040543c
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7003
jmp 0x4ea16a
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x10
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5fb430]
mov edx, dword [edx]
call fcn.0040543c
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7004
jmp 0x4ea16a
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0040a24c
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, 0x4e9e34
call fcn.00407960
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4e9c90]
call fcn.0040de4c
call fcn.00404d1c
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.00405b08
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.004058d8
mov edx, 8
call fcn.0049a40c
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 1
mov dl, 1
mov eax, dword [0x49b99c]
call fcn.0049c4b0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ea1f8
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 0x4ea2cb
lea eax, [ebp - 0xc]
call fcn.0040fb10
ret
mov eax, ebx
sub eax, 0x7002
je 0x4ea20f
sub eax, 2
je 0x4ea242
jmp 0x4ea275
mov eax, dword [ebp - 4]
mov dword [eax + 8], 8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5fb390]
mov edx, dword [edx]
call fcn.0040543c
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7002
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 2
jmp 0x4ea2b0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x10
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x5fb430]
mov edx, dword [edx]
call fcn.0040543c
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7004
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 5
jmp 0x4ea2b0
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040a24c
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, 0x4e9e34
call fcn.00407960
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x4e9c90]
call fcn.0040de4c
call fcn.00404d1c
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 + 0x5e3294]
call fcn.0040543c
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x800
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, 8
call fcn.00405b08
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.004058d8
mov edx, 8
call fcn.0049a40c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004eadf0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.0040543c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea34d
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.0040540c
ret