Function at 0x4012f6
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
call fcn.00430992
cmp eax, 3
jb 0x401388
mov edi, 0x40135e
push 8
pop ecx
mov esi, dword [esp + 8]
repe cmpsw word [esi], word es:[edi]
lea edi, [edi + ecx*2]
jne 0x401331
push dword [esp + 0xc]
call fcn.00430f1a
call fcn.00431b99
pop eax
pop ecx
dec eax
pop ecx
dec eax
push eax
cmp eax, 3
jb 0x401388
push 7
pop ecx
mov esi, dword [esp + 8]
repe cmpsw word [esi], word es:[edi]
lea edi, [edi + ecx*2]
jne 0x401349
pop eax
pop ecx
dec eax
push eax
jmp 0x42654c
push 6
pop ecx
mov esi, dword [esp + 8]
repe cmpsw word [esi], word es:[edi]
jne 0x401388
pop eax
pop ecx
dec eax
push eax
jmp 0x42b6ec
push ebp
mov ebp, esp
or ecx, 0xffffffff
xor edx, edx
push ecx
push ecx
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
push edx
push edx
push edx
push edx
mov esi, 0x439440
push esi
dec eax
jle 0x4013e5
xchg ebx, eax
lea edx, [ebp + 0xc]
sub ebx, 2
jb 0x4013c8
mov edi, dword [edx]
call 0x40161f
test edi, edi
je 0x401617
mov dword [edx], edi
add edx, 8
sub ebx, 2
jae 0x4013af
inc ebx
jne 0x4013e5
mov ecx, 0x200
mov edi, esi
mov esi, dword [edx]
xor eax, eax
dec ecx
je 0x401617
lodsw ax, word [esi]
stosw word es:[edi], ax
test eax, eax
jne 0x4013d6
push ebp
mov ebp, esp
call fcn.00401702
outsd dx, dword [esi]
jne 0x401464
add byte [ebp - 0x69], bl
mov esi, 0x401b46
test edi, edi
je 0x40140c
push 1
pop edx
mov ebx, edx
call fcn.00401683
je 0x401617
movzx eax, word [esi - 2]
add esi, eax
mov dword [ebp - 0x1c], esi
push ebp
mov ebp, esp
push 2
call fcn.00401708
popal
insb byte es:[edi], dx
jo 0x40148b
popal
add al, ch
outsd dx, dword [esi]
pop es
add eax, dword [eax]
push 1
call fcn.00401708
arpl word [edi + 0x6e], bp
jbe 0x401436
xchg ebx, eax
jae 0x40144e
push 0x439440
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40144e
test al, 0x10
je 0x40144e
mov bl, 3
call fcn.00401702
insw word es:[edi], dx
je 0x401457
xchg edi, eax
pop ebp
cmp ebx, 4
jae 0x401617
cmp ebx, 2
sbb eax, eax
or eax, edi
add bl, byte [ebx]
ror byte [ebx], 0xc7
je 0x401617
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], edi
mov esi, 0x4022aa
test edi, edi
je 0x4014a5
push ebx
shr ebx, 1
push 0xb
pop edx
inc ebx
inc ebx
call fcn.00401683
pop ebx
je 0x401617
mov eax, dword [esi - 4]
cmp ebx, 2
sbb edx, edx
or dx, word [eax + esi - 2]
je 0x401617
mov dword [ebp - 0x28], esi
pop esi
xor eax, eax
cmp word [esi], ax
jne 0x401518
xor ecx, ecx
sub esp, 0x40
mov al, byte [ecx + 0x4022a1]
mov word [esp + ecx*2], ax
inc ecx
test eax, eax
jne 0x4014b5
mov ecx, 0x200
mov edx, esp
cmp ebx, 2
jb 0x4014da
push ecx
push esi
push edx
call fcn.00430c29
jmp 0x40150d
push eax
push eax
push eax
push eax
push eax
push 0x8180c
push edx
push eax
push eax
push eax
push ecx
push esi
push eax
push eax
push eax
push 0x402277
push eax
push eax
push 0x4c
push esp
call fcn.00430db7
inc edi
je 0x40154f
jo 0x401567
outsb dx, byte [esi]
inc esi
imul ebp, dword [ebp + 0x4e], 0x57656d61
add byte [ebp - 0x3f7a339b], cl
lea esp, [ebp - 0x34]
test eax, eax
je 0x401617
cmp ebx, 2
jae 0x40152e
push 0x3e
push esi
call fcn.00430960
jb 0x401617
mov dword [ebp - 4], eax
push ebp
mov ebp, esp
push 1
call fcn.00401708
jo 0x4015ac
outsd dx, dword [esi]
jb 0x4015a3
jae 0x4015b3
add byte [ebp + 0x680a74c0], al
mov eax, dword [0xe8004022]
mov cl, 0xfa
invalid
test eax, eax
je 0x40154f
push 0x4022a1
call section.CODE
push 0
call fcn.00401708
bound esi, qword gs:[ebp + 0x67]
add byte [ebp - 9], bl
add byte [di - 9], bl
fadd dword [eax - 0x74ff22ab]
jge 0x40155a
mov esi, dword [ebp - 0x28]
jne 0x401541
test edi, edi
je 0x40158b
inc byte [ebp - 0x22]
cmp byte [ebp - 0x24], 2
jb 0x4015bb
push esi
add esi, dword [esi - 4]
mov dword [ebp - 0x28], esi
mov esi, 0x403288
mov ebx, dword [ebp - 0x24]
and ebx, 1
push ebx
jmp 0x4015c5
lea ecx, [ebp - 0x20]
push 4
push ecx
push dword [ebp - 4]
call fcn.004308c9
jb 0x4015f9
xor eax, eax
lodsb al, byte [esi]
add esi, eax
test eax, eax
je 0x4015f9
push ebp
lodsd eax, dword [esi]
and eax, dword [ebp - 0x20]
cmp eax, dword [esi]
lea esi, [esi + 8]
jne 0x40159b
or byte [ebp - 0x14], dh
push 0
push 0
push dword [ebp - 4]
call fcn.0043090f
push esi
add esi, dword [esi - 4]
mov dword [ebp - 0x28], esi
push dword [ebp - 4]
xor eax, eax
or dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x34], 0x3a40000
mov dword [0x43a740], eax
mov dword [0x439d40], eax
call esi
lea esp, [ebp - 0x38]
call fcn.00435299
pop esi
cmp byte [ebp - 0x22], 0
jne 0x4015f9
cmp dword [ebp - 0x14], 0
jne 0x4015f9
cmp dword [ebp - 0x10], 0
je 0x40159b
call fcn.0040110b
mov eax, dword [ebp - 8]
inc eax
je 0x40160f
mov edx, dword [ebp - 0x1c]
movsx ecx, word [edx - 4]
add ecx, edx
call ecx
push dword [ebp - 4]
call fcn.0043098d
leave
push 0
call sub.KERNEL32.DLL_ExitProcess
cmp word [edi], 0x2d
jne 0x401651
movzx eax, word [edi + 2]
cmp eax, 0x2d
je 0x401650
dec eax
cmp eax, 0x7f
jae 0x401651
inc eax
cmp word [edi + 4], 0
jne 0x401651
push 3
pop ecx
mov edi, 0x401654
repne scasb al, byte es:[edi]
jne 0x401651
add edi, ecx
movsx ecx, word [edi + ecx*2]
add edi, ecx
ret
xor edi, edi
ret
enter 0x18, 0
cmp eax, 4
jb 0x426621
mov esi, 0x426a29
xor eax, eax
jmp 0x42656a
lodsb al, byte [esi]
test al, al
jne 0x426562
add esi, 5
mov edi, dword [ebp + 0xc]
cmp byte [esi], al
je 0x426621
lodsb al, byte [esi]
scasw ax, word es:[edi]
jne 0x426562
test al, al
jne 0x426575
mov dword [ebp - 8], esi
push 0x4000
call fcn.00430acb
jb 0x426621
mov dword [ebp - 4], eax
xor eax, eax
lea edx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [edx], eax
push dword [ebp + 0x10]
push 0x426629
call fcn.00430b11
mov ecx, dword [ebp - 0x14]
shl ecx, 2
add ecx, 0x14
push ecx
push dword [ebp - 4]
call fcn.00430a4c
jb 0x42668a
xchg edi, eax
mov eax, dword [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], edi
stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
stosd dword es:[edi], eax
mov esi, dword [ebp - 8]
lodsb al, byte [esi]
push eax
push dword [ebp - 0x10]
call fcn.00426696
jb 0x426619
lodsd eax, dword [esi]
add esi, eax
push 0x23
push dword [ebp + 0x14]
call fcn.00430960
jb 0x426619
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 4]
lea edx, [ebp + 0x18]
sub eax, 4
push eax
push edx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call esi
add esp, 0x10
call fcn.00435299
push dword [ebp - 0x18]
call fcn.0043098d
push dword [ebp - 4]
call fcn.00430afe
leave
push 0
call sub.KERNEL32.DLL_ExitProcess
cmp dword [esp + 4], 0
je 0x42668e
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x14]
sub ebx, esi
lea eax, [ebx + 0x34]
shr ebx, 1
push eax
push dword [ebp - 4]
call fcn.00430a4c
jb 0x42668a
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub edx, edi
shr edx, 1
mov dword [eax], edx
add eax, 4
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [edx], eax
inc dword [ebp - 0x14]
xchg edi, eax
xchg edx, eax
xor eax, eax
sub edx, esi
lea ecx, [eax + 9]
shr edx, 1
stosd dword es:[edi], eax
lea eax, [edi + edx*2 + 0x2c]
stosd dword es:[edi], eax
lea eax, [ebx - 1]
sub eax, edx
stosd dword es:[edi], eax
mov eax, dword [esp + 4]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, ebx
rep movsw word es:[edi], word [esi]
xor eax, eax
inc eax
ret
mov eax, dword [ebp - 0x10]
inc dword [eax - 2]
jmp 0x42668a
pop ebx
pop edx
pop edx
sub ebx, 2
jb 0x42b71b
mov esi, 0x42b722
xor eax, eax
jmp 0x42b705
lodsb al, byte [esi]
test al, al
jne 0x42b6fd
add esi, 4
mov edi, edx
cmp byte [esi], al
je 0x42b71b
lodsb al, byte [esi]
scasw ax, word es:[edi]
jne 0x42b6fd
test al, al
jne 0x42b70b
lodsd eax, dword [esi]
add esi, eax
push ebx
xchg ebx, eax
call esi
push 0
call sub.KERNEL32.DLL_ExitProcess
je 0x42b789
js 0x42b79a
outsb dx, byte gs:[esi]
arpl word [eax], ax
mov ebx, 0x74000022
js 0x42b7a6
outsd dx, dword gs:[esi]
insb byte es:[edi], dx
add bh, ah
and al, 0
add byte [eax + 0x6f], bh
jb 0x42b73e
cli
sbb al, byte [eax]
add byte [edi + 0x61], dh
add dh, ah
sbb eax, dword [eax]
add byte [ebp + 0x61], ch
jae 0x42b7b9
add byte [ebp + 0x6d00001c], bl
jae 0x42b7c1
outsb dx, byte [esi]
add byte [eax + 0x6300001c], dl
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x42b7d0
jae 0x42b7c8
add byte [esi + ecx*2 + 0x6e700000], al
insd dword es:[di], dx
je 0x42b7d0
add byte [edi + 0x7700004f], bl
imul esi, dword [eax], 0x1d19
imul bp, word [ebp + 0x63], 0x7461
add byte [ebx + 0x21], bh
add byte [eax], al
jae 0x42b7fd
jae 0x42b7ef
arpl word fs:[ebx + esi], si
arpl word [ebx + esi], si
add byte [esi + 0x69000025], bl
jae 0x42b7c8
xor eax, 0x264e0036
add byte [eax], al
add byte es:[eax], al
ja 0x42b802
add byte [di + 0x28], dl
add byte [ecx + ebp*2 + 0x6d], ch
add byte [edx + 0x6c000026], bh
imul ebp, dword [ebp], 0x26ba
insb byte es:[edi], dx
ja 0x42b817
add byte [0x6300002c], al
jbe 0x42b7ea
add dl, cl
sub eax, 0x70650000
popal
add byte [ecx + 0x6100002e], dh
retf 0x2d
mov cl, 0x2e
add byte [eax], al
popal
add cl, ch
add cl, ch
xor byte [eax], al
add byte [edi + 0x30], ah
xor byte [eax], al
loope 0x42b806
add cl, ah
xor eax, dword [eax]
add byte [ecx + 0x6b], ch
jne 0x42b84b
add byte [eax], al
imul ebp, dword [ebx + 0x75], 0x88006172
add byte ss:[eax], al
outsw dx, word [esi]
popal
add byte [eax + 0x66000036], cl
outsd dx, dword [esi]
outsb dx, byte [esi]
je 0x42b848
jae 0x42b84a
add byte [edi + 0x39], al
add byte [eax], al
outsw dx, word [esi]
outsb dx, byte [esi]
je 0x42b855
insb byte es:[edi], dx
add cl, al
cmp dword [eax], eax
add byte [esi + 0x66], ah
pop edi
jb 0x42b871
jae 0x42b865
add byte [0x6200003a], dl
add byte [0x6200003a], dl
add byte [eax], al
bound esp, qword [ecx + 0x6c]
popal
insb byte es:[edi], dx
jb 0x42b869
outsb dx, byte [esi]
je 0x42b80e
jmp 0x42b84e
insd dword es:[edi], dx
je 0x42b81a
cmp al, 0x42
add byte [eax], al
popal
jp 0x42b894
jns 0x42b896
add byte [esi + 0x43], dh
add byte [eax], al
js 0x42b893
imul esp, dword [edx + 0x69], 0x46c30074
add byte [eax], al
ja 0x42b897
jb 0x42b89b
jae 0x42b89d
popal
outsb dx, byte [esi]
add byte [eax + 0x48], bh
add byte [eax], al
insd dword es:[edi], dx
push 0x6f
jae 0x42b8a9
popal
outsb dx, byte [esi]
add byte [ecx + 0x4a], bl
dec edx
add byte [eax], al
jb 0x42b8b2
arpl word [esi + 0x69], si
js 0x42b854
je 0x42b8b7
imul edi, dword [eax], 0x4be9
jmp 0x6e42b8a4
dec ebx
add byte [eax], al
outsb dx, byte [esi]
jae 0x42b8bc
pop edi
popal
insb byte es:[edi], dx
jo 0x42b8c8
popal
add al, bh
dec esp
add byte [eax], al
popal
imul ebp, dword [esi], 0xab2
insb byte es:[edi], dx
add byte [ecx + 0x69], ah
outsb dx, byte [esi]
add byte [edx + 0x6c00000a], dh
imul esp, dword [edi + 0x68], 0xc210074
push 0xc210074
add byte [eax], al
imul ebp, dword [ecx + 0x6d], 0x69
popal
jb 0x42b8f4
add byte [edx], ch
adc eax, 0x78640000
xor esp, dword [ebp + 0x63]
add byte [eax], dh
pop ss
add byte [eax], al
js 0x42b901
xor ebp, dword [ecx + ebp*2 + 0x73]
je 0x42b897
imul esi, dword [ebx + 0x74], 0x184200
jae 0x42b90a
add byte [edx + 0x18], al
add byte [eax], al
inc edx
sbb byte [eax], al
add byte [eax + 0x72], dh
jo 0x42b90f
outsd dx, dword [esi]
insd dword es:[edi], dx
imul esp, dword [ecx], 0x1916
add byte [edx + 0x58], bl
pop edx
pop eax
push edx
push ebx
enter 0x14, 0
push 0x36
push eax
call fcn.00430960
jb 0x42b8e8
mov edx, esp
push eax
push 0x12
push edx
push eax
call fcn.004308c9
sbb ebx, ebx
call fcn.0043098d
rcl dword [eax], 0
inc ebx
je 0x42b8ea
pop eax
movzx ebx, al
movzx ecx, ah
shr eax, 0x10
dec ecx
and al, 0xf7
dec ecx
dec eax
movzx eax, al
sub eax, 3
and eax, ecx
js 0x42b8ea
xor ebx, ebx
xchg ebx, eax
leave
pop ebx
ret
push edi
enter 0x18, 0
push 0
push 0x36
push dword [ebp + 0x18]
call fcn.00430960
pop ebx
push eax
add byte [eax], al
jb 0x42bae2
add byte [ecx - 0xb74e7bb], cl
mov dword [ebp + 0x18], eax
mov esi, esp
hlt
sub esp, 0x400
mov dword [ebp - 4], esi
mov dword [ebp - 8], esp
call fcn.0042bb11
dec esi
mov ecx, dword [ebp - 4]
add eax, 0x12
sub ecx, esi
cmp word [esi], 0x4d42
je 0x42bb9a
cmp ecx, eax
jb 0x42ba8f
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
shr eax, 8
and ah, 0xf7
movzx ecx, byte [esi + 0x10]
cmp ecx, 8
mov cl, 1
je 0x42b955
mov cl, 4
mov dword [ebp - 0x10], ecx
je 0x42b974
movzx edx, word [esi + 0x10]
sub edx, 0x18
mov cl, dl
mov byte [ebp - 0xc], dl
not cl
and dh, cl
and dl, cl
sub ah, 2
or eax, dword [esi + 4]
jmp 0x42b9ac
movzx eax, ax
movzx ebx, byte [esi + 7]
movzx ecx, word [esi + 3]
movzx edx, word [esi + 5]
sub ah, 3
je 0x42b99f
sub ebx, 0x18
add edx, ecx
mov byte [ebp - 0xc], bl
and ebx, 0xfffffff7
rol al, 1
dec edx
add ah, al
mov cl, ch
and al, 0xfd
shr edx, 8
or eax, ecx
or eax, edx
movzx edx, word [esi + 0x10]
or eax, ebx
sub edx, 8
and dh, 0xdf
or eax, edx
jne 0x42ba8f
movzx eax, word [esi + 0xc]
movzx ebx, word [esi + 0xe]
call fcn.0042bb3c
xor edx, edx
test byte [esi + 0x11], 0x20
jne 0x42b9d4
lea edx, [ebx - 1]
imul edx, ecx
neg ecx
add edx, dword [ebp - 0x14]
add edx, edi
imul ebx, eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], ecx
movsx eax, word [esi + 8]
movsx edx, word [esi + 0xa]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
movzx ecx, byte [esi]
movzx eax, word [esi + 3]
movzx edx, word [esi + 5]
mov dword [edi + 0x1c], ecx
push edi
add edi, 0x20
add esi, 0x12
rep movsb byte es:[edi], byte [esi]
pop edi
xchg ecx, eax
add edi, 0x120
cmp dword [ebp - 0x10], 4
je 0x42ba36
test edx, edx
je 0x42ba31
push edx
add dl, cl
xor eax, eax
rep stosd dword es:[edi], eax
pop ecx
call fcn.0042bb1b
dec ecx
jne 0x42ba21
sub cl, dl
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x42ba36
call fcn.0042bc87
mov al, byte [ebp - 0xa]
mov ecx, ebx
test al, 8
je 0x42ba54
test ebx, ebx
je 0x42ba9b
call fcn.0042bb11
mov ecx, eax
and ecx, 0x7f
inc ecx
sub ebx, ecx
jae 0x42ba56
add ecx, ebx
xor ebx, ebx
cmp dword [ebp - 0x10], 4
jne 0x42ba77
test al, al
js 0x42ba6a
call fcn.0042bb1b
dec ecx
jne 0x42ba60
jmp 0x42ba3f
call fcn.0042bb1b
dec ecx
mov eax, dword [edi - 4]
rep stosd dword es:[edi], eax
jmp 0x42ba3f
test al, al
js 0x42ba86
call fcn.0042bb11
stosb byte es:[edi], al
dec ecx
jne 0x42ba7b
jmp 0x42ba3f
call fcn.0042bb11
rep stosb byte es:[edi], al
jmp 0x42ba3f
push dword [ebp - 0x1c]
call fcn.004308ae
and dword [ebp - 0x1c], 0
push dword [ebp + 0x18]
call fcn.0043098d
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
test esi, esi
je 0x42bae2
mov edx, dword [esi + 0x18]
dec ecx
js 0x42bae2
test edx, edx
jne 0x42baca
dec ecx
js 0x42bac3
jne 0x42bae2
call fcn.0042bcdc
jmp 0x42badc
call fcn.0042bd2a
jmp 0x42badc
dec ecx
js 0x42bae2
jne 0x42bad7
push esi
call fcn.0042bda2
jmp 0x42bae2
call fcn.0042bd11
push esi
call fcn.004308ae
mov eax, dword [ebp - 0x1c]
cmp eax, 1
leave
pop edi
pop esi
pop ebx
ret 8
cmp ecx, 0x36
jb 0x42ba8f
movzx eax, word [esi + 0x1a]
mov edx, dword [esi + 0xa]
mov ecx, dword [esi + 0xe]
dec eax
sub ecx, 0x28
or eax, dword [esi + 0x1e]
sub edx, 0x36
or eax, ecx
jne 0x42ba8f
mov eax, dword [esi + 0x1c]
ror eax, 3
mov dword [ebp - 0xc], eax
mov ecx, eax
dec eax
je 0x42bbcf
mov cl, 4
mov dword [ebp - 0x10], ecx
je 0x42bbda
dec eax
dec eax
shr eax, 1
jmp 0x42bbdd
sub dh, 4
or eax, edx
jne 0x42ba8f
mov eax, dword [esi + 0x12]
mov ebx, dword [esi + 0x16]
call fcn.0042bb3c
lea edx, [ebx - 1]
imul edx, ecx
neg ecx
add edx, dword [ebp - 0x14]
add edx, edi
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
add edi, 0x120
add esi, 0x36
cmp dword [ebp - 0x10], 4
je 0x42bc2c
xor ecx, ecx
call fcn.0042bb1b
mov byte [edi - 1], 0xff
inc cl
jne 0x42bc1f
mov eax, dword [ebp - 0xc]
sub eax, 3
jb 0x42bc61
mov dword [ebp - 0xc], eax
dec eax
and eax, 3
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
call fcn.0042bb1b
dec ecx
jne 0x42bc41
mov ecx, dword [ebp - 0x14]
and ecx, dword [ebp - 0x18]
je 0x42bc59
call fcn.0042bb11
dec ecx
jne 0x42bc51
dec ebx
jne 0x42bc3e
jmp 0x42ba9b
mov ecx, dword [ebp - 0x14]
call fcn.0042bb11
stosb byte es:[edi], al
dec ecx
jne 0x42bc64
mov ecx, dword [ebp - 0x14]
neg ecx
and ecx, 3
je 0x42bc7f
call fcn.0042bb11
dec ecx
jne 0x42bc77
dec ebx
jne 0x42bc61
jmp 0x42ba9b