Function at 0x1003627
Capabilities:
Accept command line arguments
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x104
mov esi, 0x100a7c0
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1003647
sub eax, ecx
lea eax, [eax + 0x100a7c0]
jmp 0x1003662
lea ecx, [eax - 1]
cmp byte [ecx], 0x5c
je 0x1003666
mov eax, ecx
cmp eax, esi
ja 0x1003658
push eax
call fcn.0100345a
push esi
mov dword [0x100a070], eax
call fcn.01002977
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebp, eax
mov dword [esp + 0x18], ebp
xor ecx, ecx
mov al, byte [ebp]
cmp al, 0x20
je 0x1003694
cmp al, 9
je 0x1003694
cmp al, 0x22
jne 0x100369e
cmp al, 0x22
jne 0x100369b
xor ecx, ecx
inc ecx
inc ebp
jmp 0x1003685
cmp ecx, ebx
mov dword [esp + 0x18], ebp
je 0x10036bc
cmp byte [ebp], bl
mov eax, ebp
je 0x10036bc
cmp byte [eax], 0x22
je 0x10036b9
inc eax
cmp byte [eax], bl
jne 0x10036ad
jmp 0x10036bc
mov byte [eax], 0x20
mov eax, ebp
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10036c1
sub eax, ecx
lea eax, [eax + ebp - 1]
jmp 0x10036df
mov cl, byte [eax]
cmp cl, 0x20
je 0x10036dc
cmp cl, 9
jne 0x10036e3
mov byte [eax], bl
dec eax
cmp eax, ebp
jae 0x10036d0
mov ecx, dword [0x100a070]
mov eax, ecx
mov dword [esp + 0x10], ebx
mov byte [0x100aa20], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10036f8
sub eax, esi
lea edx, [eax + ecx - 1]
jmp 0x100370d
cmp byte [edx], 0x2e
je 0x1003713
dec edx
cmp edx, ecx
ja 0x1003707
jmp 0x1003745
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003718
sub eax, esi
lea ecx, [eax + 1]
mov dword [esp + 0x10], eax
mov eax, ecx
shr ecx, 2
mov esi, edx
mov edi, 0x100aa20
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [edx], bl
mov ecx, dword [0x100a070]
mov dword [0x100a068], 0x10021e0
cmp byte [ebp], bl
mov esi, ebp
jmp 0x100385c
mov al, byte [esi]
mov dl, byte [ecx]
or al, 0x20
or dl, 0x20
cmp al, dl
jne 0x1003855
lea ebp, [esi + 1]
lea esi, [ecx + 1]
jmp 0x100377a
xor ebx, ebx
cmp al, bl
je 0x1003795
inc ebp
inc esi
mov al, byte [esi]
mov dl, byte [ebp]
mov bl, al
or dl, 0x20
or bl, 0x20
cmp bl, dl
je 0x1003772
xor ebx, ebx
cmp al, bl
jne 0x1003855
cmp byte [ebp], 0x2e
mov dword [esp + 0x14], ebx
jne 0x10037e2
cmp dword [esp + 0x10], ebx
jbe 0x10037e2
xor edi, edi
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
jbe 0x10037de
mov eax, ebp
sub eax, 0x100aa20
lea esi, [edi + 0x100aa20]
mov dl, byte [eax + esi]
mov bl, byte [esi]
or dl, 0x20
or bl, 0x20
cmp dl, bl
jne 0x1003868
inc edi
cmp edi, dword [esp + 0x10]
jb 0x10037bc
xor ebx, ebx
add ebp, dword [esp + 0x10]
mov al, byte [ebp]
cmp al, 0x20
je 0x10037f1
cmp al, 9
je 0x10037f1
cmp al, bl
jne 0x1003855
mov esi, dword [esp + 0x18]
mov eax, ebp
sub eax, esi
mov ecx, eax
mov ebx, ecx
shr ecx, 2
mov edx, 0x100a6a0
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
cmp dword [esp + 0x14], ebx
lea edi, [eax + 0x100a6a0]
mov byte [edi], bl
jne 0x1003844
mov ecx, dword [esp + 0x10]
mov ebx, ecx
shr ecx, 2
mov esi, 0x100aa20
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
xor ebx, ebx
mov byte [eax + ecx + 0x100a6a0], bl
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x1003873
mov ecx, dword [0x100a070]
mov esi, dword [esp + 0x1c]
inc esi
cmp byte [esi], bl
mov dword [esp + 0x1c], esi
jne 0x1003759
jmp 0x1003879
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x10037e2
mov dword [0x100a068], ebp
mov ebp, dword [0x100a068]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003884
sub eax, edx
cmp eax, 3
jb 0x100394a
lea edi, [eax - 2]
cmp edi, ebx
jbe 0x100394a
xor eax, eax
inc eax
mov esi, dword [ebp]
and esi, 0xffdffdff
or esi, 0x20000000
cmp esi, 0x20582d20
jne 0x10038c0
mov dword [0x100a06c], eax
cmp esi, 0x3a582d20
jne 0x10038e2
lea eax, [ebp + 4]
push eax
mov dword [0x100a06c], 1
call fcn.010028b2
test eax, eax
je 0x1003952
xor eax, eax
inc eax
cmp esi, 0x78582d20
jne 0x10038f5
mov dword [0x100a06c], eax
mov dword [0x100a004], ebx
cmp esi, 0x70582d20
jne 0x1003907
mov dword [0x100a06c], eax
mov dword [0x100a054], eax
cmp esi, 0x20552d20
jne 0x1003914
mov dword [0x101ac60], eax
cmp esi, 0x20512d20
jne 0x1003926
mov dword [0x100a074], eax
mov dword [0x101ac60], eax
cmp esi, 0x20532d20
jne 0x1003933
mov dword [0x100a7a8], eax
cmp esi, 0x3a532d20
jne 0x1003940
mov dword [0x100a7a8], eax
dec edi
inc ebp
cmp edi, ebx
ja 0x10038a4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x52
call fcn.01002fd0
int3