Function at 0x4024e0
Capabilities:
Accept command line arguments
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x46c004]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [esp + 0x38]
push 0x208
push edi
xor esi, esi
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x1c], esi
call fcn.00440480
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
lea eax, [esp + 0x24]
push eax
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x40275f
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x40275b
mov edi, 1
lea ecx, [eax + 4]
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], ecx
nop dword [eax]
mov esi, dword [ecx - 4]
mov ecx, 0x4641ec
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402596
test dx, dx
je 0x402592
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402596
add eax, 4
add ecx, 4
test dx, dx
jne 0x402570
xor eax, eax
jmp 0x40259b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4025e0
cmp edi, ebx
jae 0x4025e0
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025b0
sub ecx, edi
sar ecx, 1
cmp ecx, 1
jne 0x4025dc
push edx
call fcn.00444470
mov ebx, dword [esp + 0x28]
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
jmp 0x402728
mov edi, dword [esp + 0xc]
mov ecx, 0x4641e4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40260d
test dx, dx
je 0x402609
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40260d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4025e7
xor eax, eax
jmp 0x402612
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402673
cmp edi, ebx
jae 0x402673
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402625
sub ecx, edi
sar ecx, 1
cmp ecx, 0x20
jne 0x402673
push edx
push str.Global_s
lea eax, [esp + 0x248]
push 0x104
push eax
call fcn.00401730
add esp, 0x10
lea eax, [esp + 0x240]
push eax
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [0x46d928], eax
jmp 0x402720
mov ecx, 0x4642d0
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4026a6
test dx, dx
je 0x4026a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4026a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402680
xor eax, eax
jmp 0x4026ab
sbb eax, eax
or eax, 1
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x4026cb
cmp edx, ebx
jae 0x4026cb
mov eax, dword [esp + 0x14]
push dword [eax]
call fcn.00444470
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x402720
mov eax, 0x4642d8
mov cx, word [esi]
cmp cx, word [eax]
jne 0x4026f6
test cx, cx
je 0x4026f2
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x4026f6
add esi, 4
add eax, 4
test cx, cx
jne 0x4026d0
xor eax, eax
jmp 0x4026fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402724
cmp edx, ebx
jae 0x402724
mov eax, dword [esp + 0x14]
push dword [eax]
lea eax, [esp + 0x3c]
push str..pipe_s
push 0x104
push eax
call fcn.00401730
add esp, 0x10
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc edi
add ecx, 4
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], ecx
lea eax, [edi - 1]
cmp eax, ebx
jb 0x402560
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 4
ja 0x402799
mov ebx, dword [esp + 0x1c]
jmp dword [esi*4 + 0x402a84]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x46d928]
test eax, eax
je 0x4027ab
push eax
call ebx
push dword [0x46d92c]
push str._target.c:WinMain:305__exited__code___i_
call fcn.00431ef0
mov ecx, dword [esp + 0x454]
add esp, 8
mov eax, dword [0x46d92c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043de43
mov esp, ebp
pop ebp
ret 0x10