Function at 0x40a02c
Capabilities:
Accept command line arguments

Disassembly:
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x28]
mov edx, dword [eax]
lea edi, [ebp - 0x34]
push edi
push ecx
push esi
push dword [ebp - 0x94]
push dword [ebp - 0x9c]
push dword [ebp - 0x28]
push dword [ebp - 0x64]
push eax
call dword [edx + 0x78]
mov dword [ebp - 0x4c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x4044e6
test eax, eax
jl 0x40458e
push 1
pop esi
mov dword [ebp - 4], esi
mov dword [ebp - 4], 2
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x34]
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x4c], eax
test eax, eax
jl 0x404533
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x74]
push edx
push 0x404d52
push eax
call dword [ecx]
mov dword [ebp - 0x4c], eax
test eax, eax
jl 0x404533
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], esi
jmp 0x404542
or dword [ebp - 4], 0xffffffff
call fcn.0040353f
push 0x2c
call sub.KERNEL32.DLL_VirtualProtect
pop ecx
mov esi, eax
test esi, esi
je 0x40457a
mov ecx, esi
call fcn.004054d3
mov dword [esi], fcn.00404bf4
mov dword [esi + 4], 0x403801
push 0x46caf0
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x40457c
xor esi, esi
test esi, esi
je 0x4045c3
push dword [ebp - 0x74]
mov ecx, esi
call fcn.0040523c
test eax, eax
jge 0x404596
push fcn.00403274
push eax
jmp 0x4045f7
push 0x1c
call sub.KERNEL32.DLL_VirtualProtect
pop ecx
test eax, eax
je 0x4045bd
lea ecx, [esi + 4]
push ecx
push dword [ebp - 0x74]
push dword [ebx + 0x24]
push dword [ebp + 0xc]
push dword [ebp - 0x34]
mov ecx, eax
call fcn.004051f0
mov edi, eax
jmp 0x4045bf
xor edi, edi
test edi, edi
jne 0x4045cf
push fcn.00403274
push 0x8007000e
jmp 0x4045f7
mov eax, dword [edi]
push edi
call dword [eax + 4]
push edi
mov ecx, dword [ebx + 0x2c]
call fcn.00403500
mov eax, dword [esi]
push dword [ebp + 0x70]
push fcn.0040355c
push esi
call dword [eax]
jmp 0x4045fc
call fcn.00404cdc
mov edi, eax
lea eax, [ebp - 0x48]
push eax
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call esi
lea eax, [ebp - 0x5c]
push eax
call esi
lea eax, [ebp - 0x84]
push eax
call esi
lea eax, [ebp - 0xa4]
push eax
call esi
lea eax, [ebp - 0x30]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x6c
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040a158
leave
ret 0x10
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
push ebx
push esi
push edi
mov ebx, ecx
je 0x40a042
mov dword [ebx + 0xc], eax
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
jne 0x40a05f
push dword [ebx]
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [ebx], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
jmp 0x405e50
mov edi, dword [ebx]
test edi, edi
jne 0x4044b9
mov edi, esi
shl edi, 2
push edi
call fcn.0040a2b4
mov edx, eax
test edx, edx
pop ecx
mov dword [ebx], edx
je 0x40a09c
mov ecx, edi
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 8], esi
mov dword [ebx + 4], esi
jmp 0x409a72
and dword [ebx + 8], 0
and dword [ebx + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8