Function at 0x1001526e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a08
call fcn.10040c40
mov eax, dword [0x10074bac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1a08], edi
cmp edi, ebx
je 0x100155b1
cmp byte [edi], bl
je 0x100155b1
mov esi, 0x7ff
push esi
lea eax, [ebp - 0x1203]
push ebx
push eax
mov byte [ebp - 0x1204], bl
call fcn.10040850
push esi
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.10040850
push 0x200
lea eax, [ebp - 0xa04]
push ebx
push eax
call fcn.10040850
lea ecx, [ebp - 0x1204]
add esp, 0x24
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x100152ef
lea edx, [ebp - 0x804]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10015303
lea eax, [ebp - 0x1204]
push eax
call fcn.100151f6
pop ecx
test al, al
je 0x10015333
xor eax, eax
mov cl, byte [ebp + eax - 0x1204]
mov byte [ebp + eax - 0x804], cl
inc eax
test cl, cl
jne 0x10015320
lea eax, [ebp - 0x1204]
push 0x1005f800
push eax
call fcn.10040c70
pop ecx
pop ecx
cmp eax, ebx
je 0x1001536b
lea ecx, [ebp - 0x11ff]
cmp eax, ecx
jae 0x1001536b
add eax, 4
lea edx, [ebp - 0x804]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1001535f
jmp 0x100153d9
lea eax, [ebp - 0x1204]
push 0x1005f540
push eax
call fcn.10040c70
pop ecx
pop ecx
cmp eax, ebx
je 0x100153a3
lea ecx, [ebp - 0x11ff]
cmp eax, ecx
jae 0x100153a3
add eax, 4
lea edx, [ebp - 0x804]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10015397
jmp 0x100153d9
lea eax, [ebp - 0x1204]
push str.._
push eax
call fcn.10040c70
pop ecx
pop ecx
cmp eax, ebx
je 0x100153d9
lea ecx, [ebp - 0x11ff]
cmp eax, ecx
jae 0x100153d9
add eax, 2
lea edx, [ebp - 0x804]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100153cf
cmp byte [ebp - 0x804], 0x2e
jne 0x10015457
cmp byte [ebp - 0x803], 0x5c
jne 0x10015457
xor eax, eax
mov cl, byte [ebp + eax - 0x804]
mov byte [ebp + eax - 0x1204], cl
inc eax
test cl, cl
jne 0x100153ed
lea eax, [ebp - 0x1a04]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x1203]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001541a
lea edi, [ebp - 0x1a04]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001542a
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [ebp + eax - 0x1a04]
mov byte [ebp + eax - 0x804], cl
inc eax
test cl, cl
jne 0x10015444
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str..exe
lea eax, [ebp - 0x804]
push eax
call esi
lea ecx, [ebp - 0x804]
mov edi, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10015476
sub ecx, edx
lea eax, [ebp + ecx - 0x808]
cmp edi, eax
jne 0x1001548d
push 2
pop ebx
push str..com
lea eax, [ebp - 0x804]
push eax
call esi
lea ecx, [ebp - 0x804]
mov edi, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100154a6
sub ecx, edx
lea eax, [ebp + ecx - 0x808]
cmp edi, eax
jne 0x100154bd
push 2
pop ebx
push str..scr
lea eax, [ebp - 0x804]
push eax
call esi
lea ecx, [ebp - 0x804]
mov esi, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100154d6
sub ecx, edx
lea eax, [ebp + ecx - 0x808]
cmp esi, eax
jne 0x100154ed
push 2
pop ebx
test ebx, ebx
jne 0x100154f9
xor eax, eax
inc eax
jmp 0x100155b3
push 0
lea eax, [ebp - 0xa04]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.10033750
add esp, 0xc
cmp dword [0x101434ac], 0
mov bl, al
je 0x10015554
cmp byte [ebp + 0xc], 0
mov eax, str.lpCommandLine
jne 0x1001552c
mov eax, str.lpApplicationName
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp - 0x1a08]
push eax
lea eax, [ebp - 0xa04]
push eax
movzx eax, bl
push eax
push str.isWhite_Process_SAL_ret__d_Hash__s__s__s___s_
push 0x63
call fcn.1003dfed
add esp, 0x1c
mov esi, 0x800
push esi
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10040850
add esp, 0xc
test bl, bl
je 0x100155b1
test byte [0x1013f2d8], 4
mov eax, str.SoftWareTrojanCut_tc_FileSA
jne 0x10015582
mov eax, str.SoftWareTrojanCut_tc_FileSAN
push esi
lea ecx, [ebp - 0x804]
push ecx
lea ecx, [ebp - 0xa04]
push ecx
push eax
push reloc.WS2_32.dll_bind
call fcn.1003e4ea
xor eax, eax
add esp, 0x14
cmp byte [ebp - 0x804], al
sete al
dec eax
and eax, 0xfffffffd
inc eax
jmp 0x100155b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004083f
leave
ret