Function at 0x413fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov eax, 0x10dc
push edi
push esi
push ebx
call fcn.00416a30
xor ebp, ebp
sub esp, eax
mov edi, dword [esp + 0x10f0]
mov edx, dword [esp + 0x10f4]
mov esi, dword [esp + 0x10f8]
mov word [edi], bp
movzx eax, word [edx]
test ax, ax
je 0x41413d
lea ebp, [edx + 2]
xor edx, edx
jmp 0x41402e
test edx, edx
je 0x414120
mov word [edx], ax
add edx, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
je 0x41413d
cmp ax, 0x25
jne 0x414010
test edx, edx
je 0x414158
xor ecx, ecx
lea ebx, [esp + 0x8d0]
mov word [edx], cx
mov dword [esp + 4], 0x41e14c
mov dword [esp], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x414330
mov dword [esp + 4], str.PROGRAM
mov dword [esp], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x414388
mov dword [esp + 4], str.PROGRAM_BASE
mov dword [esp], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x4142a8
mov dword [esp + 4], 0x41e19e
mov dword [esp], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x414528
mov dword [esp + 4], str.HOME
mov dword [esp], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x4143f8
mov dword [esp + 4], str.CACHE_DIR
mov dword [esp], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x414170
lea eax, [esp + 0x2c8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1c
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
sub esp, 0x14
test eax, eax
je 0x414490
add esp, 0x10dc
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x414113
mov word [edi], ax
movzx eax, word [ebp]
sub esi, 1
add edi, 2
add ebp, 2
test ax, ax
jne 0x41402e
xor eax, eax
mov word [edi], ax
add esp, 0x10dc
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
lea edx, [esp + 0x8d0]
mov word [esp + 0x8d0], bx
jmp 0x41401e
mov dword [esp + 4], str.TIME
mov dword [esp], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x414113
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp], eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
sub esp, 4
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea ebx, [esp + 0x4d0]
mov dword [esp + 8], str._lld
mov dword [esp + 4], 0x400
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp], ebx
call fcn.00401a60
cmp word [edi], 0
je 0x41462d
mov eax, esi
mov edx, edi
lea esi, [esi]
add edx, 2
sub eax, 1
cmp word [edx], 0
jne 0x4141e8
movzx ecx, byte [esp + 0x4d0]
mov byte [esp + 0x2b], cl
test cl, cl
je 0x41430a
add eax, ebx
mov dword [esp + 0x10f0], edi
movzx edi, byte [esp + 0x2b]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
mov ebp, ebx
mov dword [esp + 0x10f8], esi
mov esi, edx
lea esi, [esi]
nop
mov eax, dword [esp + 0x24]
mov ebx, esi
sub eax, ebp
test cx, cx
je 0x41424c
lea esi, [esi]
add ebx, 2
sub eax, 1
cmp word [ebx], 0
jne 0x414240
test eax, eax
je 0x41c99f
mov dword [esp], ebx
add ebp, 1
call sub.msvcrt.dll_wcslen
mov ecx, edi
mov dword [esp + 8], 2
mov byte [esp + 0x2c8], cl
lea eax, [ebx + eax*2]
lea ecx, [esp + 0x2c8]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov byte [esp + 0x2c9], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [ebp]
mov eax, edi
test al, al
je 0x414500
movzx ecx, word [esi]
jmp 0x414230
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
mov dword [esp + 4], str._PROGRAM_
mov edx, eax
mov eax, esi
mov dword [esp], edi
sub eax, edx
mov dword [esp + 8], eax
call fcn.00413fd0
test al, al
je 0x414113
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp eax, 3
jbe 0x4143e1
lea ebx, [edi + eax*2 - 8]
mov dword [esp + 4], str..exe
mov dword [esp], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x4143e1
xor eax, eax
mov word [ebx], ax
cmp word [edi], 0
je 0x414320
xor eax, eax
lea esi, [esi]
add edi, 2
sub esi, 1
cmp word [edi], 0
jne 0x414350
test al, al
jne 0x414373
xor edx, edx
jmp 0x41401e
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
cmp word [edi], 0
je 0x414373
mov eax, 1
lea esi, [esi]
nop
add edi, 2
sub esi, 1
cmp word [edi], 0
jne 0x414350
test al, al
je 0x414320
jmp 0x414373
sub edi, 2
xor edx, edx
add esi, 1
mov word [edi], dx
cmp word [edi - 2], 0x5c
je 0x414368
xor edx, edx
jmp 0x41401e
mov eax, dword [sym.imp.msvcrt.dll___wargv]
cmp word [edi], 0
mov edx, esi
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, edi
je 0x4143ac
lea esi, [esi]
nop
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x4143a0
movzx ebx, word [ecx]
test bx, bx
je 0x4143dc
test edx, edx
jne 0x4143c8
jmp 0x41464c
test edx, edx
je 0x41c99f
add ecx, 2
mov word [eax], bx
add eax, 2
sub edx, 1
movzx ebx, word [ecx]
test bx, bx
jne 0x4143c0
xor edx, edx
mov word [eax], dx
cmp word [edi], 0
je 0x414320
xor eax, eax
jmp 0x414310
lea ebx, [esp + 0xc0]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x28
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
sub esp, 0x14
test eax, eax
jne 0x414113
cmp word [edi], 0
mov edx, esi
mov eax, edi
je 0x41444c
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x414440
movzx ecx, word [esp + 0xc0]
test cx, cx
je 0x41447c
lea esi, [esi]
test edx, edx
je 0x41c99f
add ebx, 2
mov word [eax], cx
add eax, 2
sub edx, 1
movzx ecx, word [ebx]
test cx, cx
jne 0x414460
xor ecx, ecx
mov word [eax], cx
cmp word [edi], 0
jne 0x414346
jmp 0x414373
cmp word [edi], 0
mov edx, esi
mov eax, edi
je 0x4144ac
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x4144a0
movzx ecx, word [esp + 0x2c8]
test cx, cx
je 0x41447c
test edx, edx
je 0x41c99f
lea ebx, [esp + 0x2c8]
jmp 0x4144d8
test edx, edx
je 0x41c99f
add ebx, 2
mov word [eax], cx
add eax, 2
sub edx, 1
movzx ecx, word [ebx]
test cx, cx
jne 0x4144d0
xor ecx, ecx
mov word [eax], cx
cmp word [edi], 0
jne 0x414346
jmp 0x414373
mov edi, dword [esp + 0x10f0]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x10f8]
cmp word [edi], 0
je 0x414320
xor eax, eax
jmp 0x414310
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ebx, [esp + 0x40]
mov dword [esp + 8], 0x41e1a6
mov dword [esp + 0xc], eax
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], ebx
call fcn.00401a60
cmp word [edi], 0
je 0x414611
mov eax, esi
mov edx, edi
lea esi, [esi]
add edx, 2
sub eax, 1
cmp word [edx], 0
jne 0x414560
movzx ecx, byte [esp + 0x40]
mov byte [esp + 0x2b], cl
test cl, cl
je 0x41430a
add eax, ebx
mov dword [esp + 0x10f0], edi
movzx edi, byte [esp + 0x2b]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
mov ebp, ebx
mov dword [esp + 0x10f8], esi
mov esi, edx
mov eax, dword [esp + 0x24]
mov ebx, esi
sub eax, ebp
test cx, cx
je 0x4145bc
lea esi, [esi]
add ebx, 2
sub eax, 1
cmp word [ebx], 0
jne 0x4145b0
test eax, eax
je 0x41c99f
mov dword [esp], ebx
add ebp, 1
call sub.msvcrt.dll_wcslen
mov ecx, edi
mov dword [esp + 8], 2
mov byte [esp + 0x4d0], cl
lea eax, [ebx + eax*2]
lea ecx, [esp + 0x4d0]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov byte [esp + 0x4d1], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [ebp]
mov eax, edi
test al, al
je 0x414500
movzx ecx, word [esi]
jmp 0x4145a0
movzx ecx, byte [esp + 0x40]
mov eax, esi
mov edx, edi
mov byte [esp + 0x2b], cl
test cl, cl
jne 0x41457d
xor edx, edx
jmp 0x41401e
movzx ecx, byte [esp + 0x4d0]
mov eax, esi
mov edx, edi
mov byte [esp + 0x2b], cl
test cl, cl
jne 0x414208
xor edx, edx
jmp 0x41401e
jmp 0x41c99f
call sub.msvcrt.dll_abort