Function at 0x413877
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
push 0x64
push 0x422c10
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4a947c
push 0x422c10
call fcn.0041a84c
add esp, 8
cmp dword [ebp + 0xc], 0x2000000
jne 0x4138c8
push 0x4a9488
lea eax, [ebp - 0x8c]
push eax
call fcn.0041a850
add esp, 8
jmp 0x4138dc
push 0x4a9490
lea eax, [ebp - 0x8c]
push eax
call fcn.0041a850
add esp, 8
push 1
push 0x3000
call fcn.0041addb
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41390c
push 5
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x413c06
push 1
push 0x3000
call fcn.0041addb
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x413948
push 5
call fcn.004054a2
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041a905
add esp, 4
mov eax, 0xffffffff
jmp 0x413c06
push 0x422ce8
mov eax, dword [ebp - 8]
push eax
push 0x422c10
call fcn.004134c2
add esp, 0xc
cmp eax, 0xffffffff
jne 0x413989
mov eax, dword [ebp - 8]
push eax
call fcn.0041a905
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041a905
add esp, 4
mov eax, 0xffffffff
jmp 0x413c06
push 0x422c74
mov ax, word [0x422ce8]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00410fe5
add esp, 0x10
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x4139ea
push 0x80002
call fcn.004054a2
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.0041a905
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041a905
add esp, 4
mov eax, 0xffffffff
jmp 0x413c06
push 0x422db0
xor eax, eax
mov ax, word [0x422ce8]
xor ecx, ecx
mov cx, word [0x422c74]
sub eax, ecx
push eax
mov eax, dword [ebp - 0x90]
inc eax
push eax
push 0x4a949c
call fcn.00410fe5
add esp, 0x10
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x413a3a
mov ax, word [0x422db0]
mov word [ebp - 4], ax
jmp 0x413a51
xor eax, eax
mov ax, word [0x422ce8]
xor ecx, ecx
mov cx, word [0x422c74]
sub eax, ecx
mov word [ebp - 4], ax
push 0x422c76
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00410fe5
add esp, 0x10
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x413be7
push 0x422c0e
push 0x50
mov eax, dword [ebp + 8]
push eax
call fcn.0041a7d8
add esp, 4
xor ecx, ecx
mov cx, word [0x422c76]
add eax, ecx
add eax, dword [ebp - 0x90]
inc eax
push eax
push 0x4a8d70
call fcn.00410fe5
add esp, 0x10
xor ebx, ebx
mov bx, word [0x422ce8]
mov eax, dword [ebp + 8]
push eax
call fcn.0041a7d8
add esp, 4
xor ecx, ecx
mov cx, word [0x422c76]
xor edx, edx
mov dx, word [0x422c74]
add ecx, edx
add eax, ecx
xor ecx, ecx
mov cx, word [0x422c0e]
add eax, ecx
inc eax
sub ebx, eax
push ebx
mov eax, dword [ebp + 8]
push eax
call fcn.0041a7d8
add esp, 4
xor ecx, ecx
mov cx, word [0x422c0e]
add eax, ecx
xor ecx, ecx
mov cx, word [0x422c76]
add eax, ecx
add eax, dword [ebp - 0x90]
add eax, 3
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041b288
add esp, 0xc
xor ebx, ebx
mov bx, word [0x422ce8]
mov eax, dword [ebp + 8]
push eax
call fcn.0041a7d8
add esp, 4
xor ecx, ecx
mov cx, word [0x422c76]
xor edx, edx
mov dx, word [0x422c74]
add ecx, edx
add eax, ecx
xor ecx, ecx
mov cx, word [0x422c0e]
add eax, ecx
inc eax
sub ebx, eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov ax, word [0x422c76]
add eax, dword [ebp - 0x90]
push eax
call fcn.0041b288
add esp, 0xc
xor ebx, ebx
mov bx, word [0x422ce8]
mov eax, dword [ebp + 8]
push eax
call fcn.0041a7d8
add esp, 4
xor ecx, ecx
mov cx, word [0x422c0e]
add eax, ecx
add eax, 3
sub ebx, eax
mov word [0x422ce8], bx
push 0x422ce8
mov eax, dword [ebp - 8]
push eax
push 0x422c10
call fcn.00413610
add esp, 0xc
cmp eax, 0xffffffff
jne 0x413be7
mov eax, dword [ebp - 8]
push eax
call fcn.0041a905
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041a905
add esp, 4
mov eax, 0xffffffff
jmp 0x413c06
mov eax, dword [ebp - 8]
push eax
call fcn.0041a905
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041a905
add esp, 4
xor eax, eax
jmp 0x413c06
pop edi
pop esi
pop ebx
leave
ret