Function at 0x4030d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452c90
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x46b554]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
push 0x46d784
mov dword [esp + 0x24], 0x46d784
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x48], 0
mov edi, dword [ebx + 0x20]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x1c], edi
sar eax, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov ecx, edi
mov byte [esp + 0x48], 1
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 0xc]
sar eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, 2
call fcn.0040f520
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 8]
mov dword [ecx], ebx
mov dword [ecx + 8], 2
add dword [eax + 8], 0x10
mov esi, dword [ebx + 0x20]
mov eax, dword [esi + 0x10]
push 0xe
add eax, 0x60
push str.current_config
push esi
mov dword [esp + 0x20], eax
call fcn.004273f0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 8]
add esp, 0xc
sub eax, 0x10
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push esi
mov dword [esp + 0x44], 4
call fcn.0042dad0
add dword [esi + 8], 0xfffffff0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x60]
push ecx
call fcn.0042af60
mov esi, dword [eax]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 8]
mov dword [ecx], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
add dword [edx + 8], 0x10
mov esi, dword [ebx + 0x20]
mov eax, dword [esi + 8]
add esp, 0x14
sub eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4031f0
sub eax, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push esi
call fcn.004273f0
mov edx, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov dword [esp + 0x40], 4
call fcn.0042d9e0
add dword [esi + 8], 0x10
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 8]
sub eax, 0x10
add esp, 0xc
cmp eax, 0x457738
je 0x403270
cmp dword [eax + 8], 0
jne 0x403270
mov ecx, dword [esp + 0x28]
mov eax, edi
call fcn.0040f5e0
push 0x46d784
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4032bd
mov eax, dword [esp + 0x10]
sub eax, ecx
inc eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov esi, dword [ebx + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, esi
call fcn.0040f4a0
mov edx, dword [eax]
mov ecx, dword [esi + 8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
add dword [esi + 8], 0x10
mov eax, 1
add dword [esp + 0x10], eax
sub dword [esp + 0x14], eax
jne 0x403286
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
lea edx, [ecx + 1]
mov ecx, dword [eax + 8]
shl edx, 4
sub ecx, edx
mov dword [esp + 0x14], ecx
sub ecx, dword [eax + 0x20]
xor esi, esi
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0x40fec0
xor edx, edx
mov dword [esp + 0x24], esi
call fcn.00418c80
add esp, 0xc
test eax, eax
je 0x4033d9
mov eax, dword [ebx + 0x20]
mov esi, dword [eax + 8]
sub esi, 0x10
cmp dword [esi + 8], 4
je 0x403335
mov edi, eax
call fcn.0042d760
test eax, eax
jne 0x403317
mov edi, dword [esp + 0x1c]
xor esi, esi
jmp 0x40333a
mov esi, edi
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0x44]
cmp edx, dword [eax + 0x40]
jb 0x40332b
mov eax, esi
call fcn.0041ac70
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x1c]
sub esi, 0x10
mov esi, dword [esi]
add esi, 0x10
cmp dword [ebx + 0x18], 8
jb 0x403345
mov eax, dword [ebx + 4]
jmp 0x403348
lea eax, [ebx + 4]
push esi
push eax
push str.Exec_error:__S:__s
call fcn.0040ba70
mov eax, dword [esp + 0x34]
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
jl 0x4033ae
mov edx, dword [edi + 0xc]
shl eax, 4
add edx, eax
cmp dword [edi + 8], edx
jae 0x403384
mov edi, edi
mov edx, dword [edi + 8]
mov dword [edx + 8], ecx
add dword [edi + 8], 0x10
mov edx, dword [edi + 0xc]
add edx, eax
cmp dword [edi + 8], edx
jb 0x403370
mov ecx, dword [edi + 0xc]
add ecx, eax
push 0x46d784
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
shl eax, 4
add eax, 0x10
add dword [edi + 8], eax
push 0x46d784
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x28]
cmp eax, esi
jl 0x40340e
mov edx, dword [edi + 0xc]
shl eax, 4
add edx, eax
cmp dword [edi + 8], edx
jae 0x403404
mov edi, edi
mov ecx, dword [edi + 8]
mov dword [ecx + 8], esi
add dword [edi + 8], 0x10
mov edx, dword [edi + 0xc]
add edx, eax
cmp dword [edi + 8], edx
jb 0x4033f0
mov ecx, dword [edi + 0xc]
add ecx, eax
mov dword [edi + 8], ecx
jmp 0x403417
shl eax, 4
add eax, 0x10
add dword [edi + 8], eax
push 0x46d784
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8