Function at 0x4223f0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9c4d
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x5021c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xa8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea esi, [ecx + 2]
mov dword [ebp - 0x2c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422464
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00403450
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
jbe 0x422490
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0xbc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 7
mov word [ebx], cx
mov dword [ebp - 0xa8], 1
test eax, eax
je 0x42288e
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xc4], eax
mov edi, 1
mov byte [ebp - 4], 2
xor al, al
mov dword [ebp - 0xac], edi
mov byte [ebp - 0xa1], al
cmp dword [ebp - 0xbc], edi
jle 0x422880
mov esi, dword [ebp - 0x30]
mov edi, edi
test al, al
je 0x422521
xor al, al
mov byte [ebp - 0xa1], al
jmp 0x42286d
mov eax, dword [ebp - 0xb0]
mov edi, dword [eax + edi*4]
movzx eax, word [edi]
cmp eax, 0x2f
je 0x4228b4
cmp eax, 0x2d
je 0x4228b4
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x422544
sub edx, ecx
lea ecx, [ebp - 0x40]
sar edx, 1
cmp dword [ebp - 0x2c], 7
seta bl
jbe 0x422562
mov ecx, dword [ebp - 0x40]
push edx
push edi
push 0
mov edx, esi
call fcn.00404ca0
add esp, 0xc
cmp eax, 0xffffffff
je 0x42261a
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
cmp esi, eax
jb 0x422b01
sub esi, eax
cmp esi, 0xffffffff
jb 0x42259f
or esi, 0xffffffff
lea ecx, [ebp - 0x40]
test bl, bl
je 0x4225a9
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax*2]
push esi
push eax
lea ecx, [ebp - 0x70]
call fcn.00403450
or dword [ebp - 0xa8], 2
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 7
jbe 0x4225cd
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422906
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x42261a
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422610
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422afc
push ecx
push edx
call fcn.004accfd
add esp, 8
mov eax, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xac]
mov edx, dword [eax + edi*4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea esi, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422642
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403450
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov edx, dword [ebp - 0x28]
seta bl
jbe 0x422670
mov ecx, edx
mov eax, dword [ebp - 0x18]
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x28]
test bl, bl
je 0x42267f
mov eax, edx
cmp eax, ecx
je 0x42269e
mov edi, 0x5c
cmp word [eax], 0x2f
jne 0x422691
mov word [eax], di
add eax, 2
cmp eax, ecx
jne 0x422688
mov edi, dword [ebp - 0xac]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
call fcn.00414ff0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4226f2
mov ecx, eax
call fcn.004027a0
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xa0]
call fcn.004027a0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x422709
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4227ff
mov eax, dword [ebp - 0xb0]
mov esi, dword [eax + edi*4]
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x422726
sub edx, ecx
lea ecx, [ebp - 0x40]
sar edx, 1
cmp dword [ebp - 0x2c], 7
seta bl
jbe 0x422744
mov ecx, dword [ebp - 0x40]
push edx
push esi
mov esi, dword [ebp - 0x30]
mov edx, esi
push 0
call fcn.00404ca0
add esp, 0xc
cmp eax, 0xffffffff
je 0x422802
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
cmp esi, eax
jb 0x422b01
sub esi, eax
cmp esi, 0xffffffff
jb 0x422784
or esi, 0xffffffff
lea ecx, [ebp - 0x40]
test bl, bl
je 0x42278e
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax*2]
push esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00403450
or dword [ebp - 0xa8], 4
mov byte [ebp - 4], 6
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 7
jbe 0x4227b2
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4229c1
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x4227ff
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4227f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422af7
push ecx
push edx
call fcn.004accfd
add esp, 8
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0xb4]
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x422826
cmp dword [ebp - 0x14], 7
jbe 0x422818
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00403a40
mov esi, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x422867
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42285a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422afc
push ecx
push edx
call fcn.004accfd
mov esi, dword [ebp - 0x30]
add esp, 8
mov al, byte [ebp - 0xa1]
inc edi
mov dword [ebp - 0xac], edi
cmp edi, dword [ebp - 0xbc]
jl 0x422510
mov ecx, dword [ebp - 0xb8]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x40]
call fcn.004027a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004accbf
mov esp, ebp
pop ebp
ret
mov ecx, 0x4ec554
lea eax, [edi + 2]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4228e6
test dx, dx
je 0x4228e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4228e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4228c0
xor eax, eax
jmp 0x4228eb
sbb eax, eax
or eax, 1
mov edi, dword [ebp - 0xac]
test eax, eax
jne 0x422867
mov al, 1
mov byte [ebp - 0xa1], al
jmp 0x42286d
cmp dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x70]
mov edx, dword [ebp - 0x70]
jbe 0x422914
mov ecx, edx
mov eax, dword [ebp - 0x60]
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x70]
jbe 0x422921
mov eax, edx
cmp eax, ecx
je 0x42293a
cmp word [eax], 0x2f
jne 0x422933
mov edx, 0x5c
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x422925
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x88]
call fcn.00414ff0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x88]
mov ebx, dword [ebp - 0xb4]
cmp ebx, eax
je 0x422973
cmp dword [ebp - 0x74], 7
jbe 0x422968
mov eax, dword [ebp - 0x88]
push dword [ebp - 0x78]
mov ecx, ebx
push eax
call fcn.00403a40
lea ecx, [ebp - 0x88]
call fcn.004027a0
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x422880
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4229b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422afc
push ecx
push edx
call fcn.004accfd
add esp, 8
jmp 0x422880
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x58]
jbe 0x4229cf
mov ecx, edx
mov eax, dword [ebp - 0x48]
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x58]
jbe 0x4229dc
mov eax, edx
cmp eax, ecx
je 0x4229f5
cmp word [eax], 0x2f
jne 0x4229ee
mov edx, 0x5c
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x4229e0
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0xa0]
call fcn.00414ff0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x422a49
mov ecx, eax
call fcn.004027a0
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xa0]
call fcn.004027a0
mov ebx, dword [ebp - 0xb4]
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x422a75
cmp dword [ebp - 0x14], 7
jbe 0x422a6a
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00403a40
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x422aab
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422aa1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422af7
push ecx
push edx
call fcn.004accfd
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x422880
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4229b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4229b2
call fcn.004b306f
call fcn.004b306f
call fcn.00404b30
int3