Function at 0x409340
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43db28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4541fc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x45fb64]
mov edx, dword [eax + 0xc]
mov ecx, 0x45fb64
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x38], 0
mov eax, dword [0x45fb64]
mov edx, dword [eax + 0xc]
mov ecx, 0x45fb64
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0040a640
mov esi, 1
mov byte [esp + 0x38], 2
mov eax, dword [ebp - 8]
mov ecx, esi
sub ecx, dword [ebp - 4]
sub eax, 0x800
or eax, ecx
jge 0x4093df
mov ecx, 0x800
lea eax, [esp + 0x24]
call fcn.0040b080
mov ebp, dword [esp + 0x24]
push ebp
push ecx
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov ecx, 0x44a708
call fcn.0040a640
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], esi
jle 0x409412
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040ac40
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x44], 2
call fcn.00408a50
mov eax, dword [ebp - 8]
add esp, 0xc
push eax
push ebp
call fcn.004193f4
add esp, 8
test eax, eax
jl 0x409605
cmp eax, dword [ebp - 8]
jg 0x409605
mov dword [ebp - 0xc], eax
xor edx, edx
mov word [ebp + eax*2], dx
mov eax, dword [ebx - 8]
mov ecx, esi
sub ecx, dword [ebx - 4]
sub eax, 0x800
or eax, ecx
jge 0x40946b
mov ecx, 0x800
lea eax, [esp + 0x28]
call fcn.0040b080
mov ebx, dword [esp + 0x28]
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
push eax
mov ecx, 0x44a710
call fcn.0040a640
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], esi
jle 0x40949e
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040ac40
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x44], 2
call fcn.00408a50
mov eax, dword [ebx - 8]
add esp, 0xc
push eax
push ebx
call fcn.004193f4
add esp, 8
test eax, eax
jl 0x409605
cmp eax, dword [ebx - 8]
jg 0x409605
xor ecx, ecx
mov dword [ebx - 0xc], eax
lea edx, [esp + 0x20]
mov word [ebx + eax*2], cx
push edx
mov ecx, 0x44a470
call fcn.0040a640
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x44a470
mov byte [esp + 0x3c], 5
call fcn.0040a640
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 6
call fcn.00409140
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ebx
push ebp
push ecx
push edx
push str.ua00001m_slip_sk0an_suac_svfr
mov edi, 0x461030
call fcn.0040be80
add esp, 0x14
lea esi, [esp + 0x20]
call fcn.0040a050
lea esi, [esp + 0x1c]
call fcn.0040a050
mov byte [esp + 0x38], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40955d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.004010a0
int3