Function at 0x404320
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f85f
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4514c8]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x4514c8]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ecx
mov ecx, 0x4524e0
call fcn.0040e2a0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [esp + 0x34], esi
cmp dword [esp + 0x20], ebx
je 0x404ba8
test esi, esi
je 0x404ba8
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 0x2c], esi
call fcn.0040bf70
mov dword [esp + 0xf0], ebx
lea ecx, [esp + 0x64]
push str.mavinject
xor edi, edi
call fcn.00405340
mov byte [esp + 0xf0], 1
lea ecx, [esp + 0x4c]
push dword [esi]
call fcn.00405340
mov byte [esp + 0xf0], 2
lea edx, [esp + 0x64]
lea ecx, [esp + 0x4c]
call fcn.00403440
mov byte [esp + 0x16], al
mov byte [esp + 0xf0], 1
cmp dword [esp + 0x60], 8
jb 0x40441d
push dword [esp + 0x4c]
call fcn.0041a537
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov byte [esp + 0xf0], al
cmp dword [esp + 0x78], 8
jb 0x40444e
push dword [esp + 0x64]
call fcn.0041a537
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
cmp byte [esp + 0x16], 0
mov word [esp + 0x64], ax
mov eax, 1
cmovne edi, eax
mov dword [esp + 0x74], 0
cmp edi, dword [esp + 0x20]
jl 0x404482
mov esi, 0x10000
jmp 0x404b10
mov ecx, dword [esi + edi*4]
lea eax, [esi + edi*4]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], eax
call fcn.00404c50
mov esi, eax
test esi, esi
jne 0x4045c3
mov ecx, dword [esp + 0x2c]
call fcn.00403a50
lea eax, [edi + 1]
mov byte [esp + 0x16], 0
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x20]
jge 0x40454d
push str._HMODULE0x
lea ecx, [esp + 0x80]
call fcn.00405340
mov byte [esp + 0xf0], 3
lea ecx, [esp + 0x4c]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], 1
push dword [esi + 4]
call fcn.00405340
mov dword [esp + 0xf0], 4
mov ebx, 3
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x7c]
cmp dword [esp + 0x90], 8
lea eax, [esp + 0x4c]
push dword [esp + 0x8c]
cmovae ecx, dword [esp + 0x80]
cmp dword [esp + 0x64], 8
push ecx
cmovae eax, dword [esp + 0x54]
push eax
call fcn.0041b228
add esp, 0xc
test eax, eax
jne 0x404551
mov byte [esp + 0x15], 1
jmp 0x404556
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x15], 0
mov dword [esp + 0xf0], 3
test bl, 2
je 0x404576
and ebx, 0xfffffffd
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], ebx
call fcn.00405490
mov dword [esp + 0xf0], 0
test bl, 1
je 0x404596
and ebx, 0xfffffffe
lea ecx, [esp + 0x7c]
mov dword [esp + 0x18], ebx
call fcn.00405490
cmp byte [esp + 0x15], 0
je 0x4045cf
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x40]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + edi*4]
lea eax, [eax + edi*4]
mov byte [esp + 0x16], 1
mov dword [esp + 0x1c], eax
call fcn.00404ce0
mov esi, eax
test esi, esi
je 0x4045cb
shl esi, 0x10
jmp 0x404b10
mov esi, dword [esp + 0x1c]
lea eax, [edi + 1]
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x20]
jge 0x404651
push str._INJECTRUNNING
lea ecx, [esp + 0x50]
call fcn.00405340
mov byte [esp + 0xf0], 5
or ebx, 4
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x7c]
push dword [esi + 4]
call fcn.00405340
mov dword [esp + 0xf0], 6
or ebx, 8
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x4c]
cmp dword [esp + 0x60], 8
lea eax, [esp + 0x7c]
cmovae ecx, dword [esp + 0x4c]
cmp dword [esp + 0x90], 8
push ecx
cmovae eax, dword [esp + 0x80]
push eax
call fcn.0041a6e8
add esp, 8
mov byte [esp + 0x15], 1
test eax, eax
je 0x404656
mov byte [esp + 0x15], 0
mov dword [esp + 0xf0], 5
test bl, 8
je 0x404676
and ebx, 0xfffffff7
lea ecx, [esp + 0x7c]
mov dword [esp + 0x18], ebx
call fcn.00405490
mov dword [esp + 0xf0], 0
test bl, 4
je 0x404696
and ebx, 0xfffffffb
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], ebx
call fcn.00405490
cmp byte [esp + 0x15], 0
je 0x4046a6
mov edi, dword [esp + 0x24]
mov byte [esp + 0x17], 1
xor ebx, ebx
xor eax, eax
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], ax
mov byte [esp + 0xf0], 7
inc edi
cmp edi, dword [esp + 0x20]
jge 0x404767
lea esp, [esp]
cmp dword [esp + 0xa4], 0
mov eax, dword [esp + 0x34]
mov esi, dword [eax + edi*4]
jne 0x40473f
cmp word [esi], 0
jne 0x404719
xor ecx, ecx
push ecx
push esi
lea ecx, [esp + 0x9c]
call fcn.00407230
jmp 0x40475c
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404720
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x9c]
call fcn.00407230
jmp 0x40475c
test ebx, ebx
jne 0x4047db
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.00404c50
mov esi, eax
test esi, esi
jne 0x4047d3
mov ebx, dword [esp + 0x1c]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x4046f0
test ebx, ebx
jne 0x40476c
mov ebx, 1
xor edi, edi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov byte [esp + 0xf0], 8
cmp dword [esp + 0xa4], edi
je 0x4047e5
push ebx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xb4]
call fcn.00402ff0
mov byte [esp + 0xf0], 9
lea ecx, [esp + 0x64]
push eax
call fcn.00406420
mov byte [esp + 0xf0], 8
lea ecx, [esp + 0xac]
call fcn.00404be0
mov edi, dword [esp + 0x68]
jmp 0x404947
shl esi, 0x10
jmp 0x404acf
mov esi, 0x10000
jmp 0x404acf
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov byte [esp + 0xf0], 0xa
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov byte [esp + 0xf0], 0xc
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov byte [esp + 0xf0], 0xd
lea ecx, [esp + 0xac]
push str.Modules
call fcn.00405340
mov byte [esp + 0xf0], 0xe
lea ecx, [esp + 0xc8]
push 0x438838
call fcn.00405340
mov byte [esp + 0xf0], 0xf
lea eax, [esp + 0x4c]
push ecx
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.004102a0
mov byte [esp + 0xf0], 0xe
lea ecx, [esp + 0xc8]
call fcn.00405490
mov byte [esp + 0xf0], 0xd
lea ecx, [esp + 0xac]
call fcn.00405490
mov ecx, dword [esp + 0x50]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x4c]
sub ecx, esi
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x404925
push 1
push esi
lea ecx, [esp + 0xb4]
call fcn.00402ff0
mov byte [esp + 0xf0], 0x10
lea ecx, [esp + 0x64]
push eax
call fcn.00406420
mov byte [esp + 0xf0], 0xd
lea ecx, [esp + 0xac]
call fcn.00404be0
add esi, 0x18
dec ebx
jne 0x4048e6
mov edi, dword [esp + 0x68]
mov byte [esp + 0xf0], 0xc
lea ecx, [esp + 0x4c]
call fcn.004056b0
mov byte [esp + 0xf0], 8
lea ecx, [esp + 0x7c]
call fcn.004101e0
cmp byte [esp + 0x17], 0
je 0x404966
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x64]
call fcn.004041e0
mov ebx, dword [esp + 0x64]
mov esi, eax
jmp 0x404a94
mov eax, dword [esp + 0x2c]
push eax
push 0
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x34], ebx
test ebx, ebx
jne 0x404999
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x64]
mov esi, eax
or esi, 0x20000
jmp 0x404a94
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], ebx
call fcn.0040bee0
mov byte [esp + 0xf0], 0x11
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov byte [esp + 0xf0], 0x12
cmp byte [esp + 0x16], 0
je 0x404b2b
mov esi, dword [esp + 0x64]
cmp esi, edi
je 0x404a4c
nop
cmp dword [esi + 0x14], 8
jb 0x4049fa
mov ecx, dword [esi]
jmp 0x4049fc
mov ecx, esi
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x4c]
push ecx
mov dword [esp + 0x28], eax
call fcn.004038c0
add esp, 4
xor ecx, ecx
test eax, eax
je 0x404a27
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
mov ecx, 1
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x34]
push ecx
push eax
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
call fcn.00415c10
test eax, eax
je 0x404b9a
add esi, 0x1c
cmp esi, edi
jne 0x4049f0
mov ebx, dword [esp + 0x64]
xor esi, esi
mov byte [esp + 0xf0], 0x11
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x404a83
push eax
call fcn.0041a537
add esp, 4
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov byte [esp + 0xf0], 8
lea ecx, [esp + 0x48]
call fcn.004039b0
mov byte [esp + 0xf0], 7
test ebx, ebx
je 0x404acf
push dword [esp + 0x3c]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.0040cfd0
push ebx
call fcn.0041a537
add esp, 0xc
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov byte [esp + 0xf0], 0
cmp dword [esp + 0xa8], 8
jb 0x404af0
push dword [esp + 0x94]
call fcn.0041a537
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov dword [esp + 0xf0], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.004039b0
mov eax, esi
jmp 0x404bb3
mov ebx, dword [esp + 0x64]
mov esi, ebx
cmp ebx, edi
je 0x404a50
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x404b4a
mov ecx, dword [esi]
jmp 0x404b4c
mov ecx, esi
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x4c]
push ecx
mov dword [esp + 0x28], eax
call fcn.004038c0
add esp, 4
xor ecx, ecx
test eax, eax
je 0x404b77
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, 1
mov dword [esp + 0x2c], eax
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x44]
push eax
lea edx, [esp + 0x34]
call fcn.00415960
test eax, eax
je 0x404b9e
add esi, 0x1c
cmp esi, edi
jne 0x404b40
jmp 0x404a50
mov ebx, dword [esp + 0x64]
mov esi, 0x30000
jmp 0x404a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x10000
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0041a53c
mov esp, ebp
pop ebp
ret 0x10