Function at 0x4ecf98
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 - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4ed3ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4ecfe4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ecff2
mov ebx, 0x2303
jmp 0x4ed38e
mov eax, ebx
test eax, eax
je 0x4ecffd
sub eax, 4
mov eax, dword [eax]
test eax, eax
setne al
test al, al
je 0x4ed28d
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0x7001
jne 0x4ed0fa
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004ec60c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405b08
lea eax, [ebp - 8]
call fcn.004058d8
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004ec60c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405b08
lea edx, [ebp - 0x13c]
mov eax, ebx
call fcn.00493264
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x10]
call fcn.004996fc
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x10]
call fcn.004974bc
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x12a]
call fcn.004a8174
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
mov edx, dword [ebp - 0x20]
call fcn.00405b08
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
call fcn.004058d8
push eax
lea eax, [ebp - 8]
call fcn.004058d8
mov edx, eax
lea eax, [ebp - 0x12a]
pop ecx
call fcn.004a81a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 8
call fcn.004053e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 4
mov edx, dword [0x5fae90]
mov edx, dword [edx]
call fcn.0040543c
jmp 0x4ed246
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004ec60c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405b08
lea eax, [ebp - 8]
call fcn.004058d8
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004ec60c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405b08
push ebp
call fcn.004ecf40
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4ed157
mov ebx, 0x2303
jmp 0x4ed38e
xor eax, eax
push ebp
push 0x4ed22d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ed21c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 8]
call fcn.004058d8
mov edx, eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.004eb2c8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00405b08
lea eax, [ebp - 0xc]
call fcn.004058d8
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 8]
call fcn.004058d8
mov edx, eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.004eb2c8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00405b08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 4
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x2c]
call fcn.0040543c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 8
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x30]
call fcn.0040543c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, 0xc
mov edx, dword [ebp - 0xc]
call fcn.0040543c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed223
lea eax, [ebp - 0x28]
call fcn.0040fb10
ret
xor eax, eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
xor edx, edx
call fcn.004ec7bc
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00405b08
lea eax, [ebp - 0xc]
call fcn.004058d8
mov edx, eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004ec7bc
lea eax, [ebp - 0x14]
mov edx, 0x4ed3d4
call fcn.00405480
jmp 0x4ed2d2
xor eax, eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004ec60c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00405b08
lea eax, [ebp - 0xc]
call fcn.004058d8
mov edx, eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004ec60c
lea eax, [ebp - 0x14]
mov edx, 0x4ed3f4
call fcn.00405480
cmp byte [ebp + 8], 0
je 0x4ed360
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
call fcn.004058d8
xor ecx, ecx
mov edx, dword [ebp - 0x24]
call fcn.004d1e94
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00405b08
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 8]
call fcn.004058d8
push eax
lea eax, [ebp - 0xc]
call fcn.004058d8
mov edx, dword [ebp - 0x24]
pop ecx
call fcn.004d1e94
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jge 0x4ed341
mov ebx, 0x2308
jmp 0x4ed356
lea eax, [ebp - 8]
call fcn.004058d8
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
call fcn.0040312c
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
jmp 0x4ed38e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jge 0x4ed371
mov ebx, 0x2308
jmp 0x4ed386
lea eax, [ebp - 0xc]
call fcn.004058d8
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.0040312c
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed3c1
lea eax, [ebp - 0x140]
mov edx, dword [0x496de0]
call fcn.00406d9c
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040540c
ret