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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x104
mov esi, 0x1008780
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 0x1003292
sub eax, ecx
lea eax, [eax + 0x1008780]
jmp 0x10032ad
lea ecx, [eax - 1]
cmp byte [ecx], 0x5c
je 0x10032b1
mov eax, ecx
cmp eax, esi
ja 0x10032a3
push eax
call fcn.010030c7
push esi
mov dword [0x1008034], eax
call fcn.0100280d
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 0x10032df
cmp al, 9
je 0x10032df
cmp al, 0x22
jne 0x10032e9
cmp al, 0x22
jne 0x10032e6
xor ecx, ecx
inc ecx
inc ebp
jmp 0x10032d0
cmp ecx, ebx
mov dword [esp + 0x18], ebp
je 0x1003307
cmp byte [ebp], bl
mov eax, ebp
je 0x1003307
cmp byte [eax], 0x22
je 0x1003304
inc eax
cmp byte [eax], bl
jne 0x10032f8
jmp 0x1003307
mov byte [eax], 0x20
mov eax, ebp
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100330c
sub eax, ecx
lea eax, [eax + ebp - 1]
jmp 0x100332a
mov cl, byte [eax]
cmp cl, 0x20
je 0x1003327
cmp cl, 9
jne 0x100332e
mov byte [eax], bl
dec eax
cmp eax, ebp
jae 0x100331b
mov ecx, dword [0x1008034]
mov eax, ecx
mov dword [esp + 0x10], ebx
mov byte [0x10089e0], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1003343
sub eax, esi
lea edx, [eax + ecx - 1]
jmp 0x1003358
cmp byte [edx], 0x2e
je 0x100335e
dec edx
cmp edx, ecx
ja 0x1003352
jmp 0x1003390
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003363
sub eax, esi
lea ecx, [eax + 1]
mov dword [esp + 0x10], eax
mov eax, ecx
shr ecx, 2
mov esi, edx
mov edi, 0x10089e0
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 [0x1008034]
mov dword [0x100802c], 0x100219c
cmp byte [ebp], bl
mov esi, ebp
jmp 0x10034a7
mov al, byte [esi]
mov dl, byte [ecx]
or al, 0x20
or dl, 0x20
cmp al, dl
jne 0x10034a0
lea ebp, [esi + 1]
lea esi, [ecx + 1]
jmp 0x10033c5
xor ebx, ebx
cmp al, bl
je 0x10033e0
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 0x10033bd
xor ebx, ebx
cmp al, bl
jne 0x10034a0
cmp byte [ebp], 0x2e
mov dword [esp + 0x14], ebx
jne 0x100342d
cmp dword [esp + 0x10], ebx
jbe 0x100342d
xor edi, edi
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
jbe 0x1003429
mov eax, ebp
sub eax, 0x10089e0
lea esi, [edi + 0x10089e0]
mov dl, byte [eax + esi]
mov bl, byte [esi]
or dl, 0x20
or bl, 0x20
cmp dl, bl
jne 0x10034b3
inc edi
cmp edi, dword [esp + 0x10]
jb 0x1003407
xor ebx, ebx
add ebp, dword [esp + 0x10]
mov al, byte [ebp]
cmp al, 0x20
je 0x100343c
cmp al, 9
je 0x100343c
cmp al, bl
jne 0x10034a0
mov esi, dword [esp + 0x18]
mov eax, ebp
sub eax, esi
mov ecx, eax
mov ebx, ecx
shr ecx, 2
mov edx, 0x1008660
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 + 0x1008660]
mov byte [edi], bl
jne 0x100348f
mov ecx, dword [esp + 0x10]
mov ebx, ecx
shr ecx, 2
mov esi, 0x10089e0
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 + 0x1008660], bl
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x10034be
mov ecx, dword [0x1008034]
mov esi, dword [esp + 0x1c]
inc esi
cmp byte [esi], bl
mov dword [esp + 0x1c], esi
jne 0x10033a4
jmp 0x10034c4
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x100342d
mov dword [0x100802c], ebp
mov ebp, dword [0x100802c]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10034cf
sub eax, edx
cmp eax, 3
jb 0x1003561
lea edi, [eax - 2]
jmp 0x100355d
mov esi, dword [ebp]
and esi, 0xffdffdff
xor eax, eax
or esi, 0x20000000
inc eax
cmp esi, 0x20582d20
jne 0x1003505
mov dword [0x1008030], eax
cmp esi, 0x3a582d20
jne 0x1003522
mov dword [0x1008030], eax
lea eax, [ebp + 4]
push eax
call fcn.01002746
test eax, eax
je 0x1003569
xor eax, eax
inc eax
cmp esi, 0x20552d20
jne 0x100352f
mov dword [0x1018c20], eax
cmp esi, 0x20512d20
jne 0x1003541
mov dword [0x1008038], eax
mov dword [0x1018c20], eax
cmp esi, 0x20532d20
jne 0x100354e
mov dword [0x1008768], eax
cmp esi, 0x3a532d20
jne 0x100355b
mov dword [0x1008768], eax
dec edi
inc ebp
cmp edi, ebx
ja 0x10034e6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x52
call fcn.01002cb9
int3