Function at 0x401d20
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e4b6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x104
push eax
mov dword [ebp - 0x250], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401d91
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004047d0
push edi
mov edx, 0x425608
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00403c50
add esp, 4
mov byte [ebp - 4], 1
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x401ddc
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x224]
sub eax, ebx
cmp ecx, eax
ja 0x401e2d
cmp dword [ebp - 0x220], 8
lea esi, [ebp - 0x234]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x234]
lea edi, [ebx + ecx]
push eax
push edx
mov dword [ebp - 0x224], edi
lea eax, [esi + ebx*2]
push eax
call fcn.00409010
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x250]
jmp 0x401e48
push ecx
push edx
mov byte [ebp - 0x250], 0
push dword [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00404150
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x401e8c
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fbe
push edx
push ecx
call fcn.00407b35
add esp, 8
push 1
push 0
push 0
lea eax, [ebp - 0x234]
push 0
push eax
call esi
add esp, 0x14
lea ecx, [ebp - 0x234]
mov ebx, eax
call fcn.00401350
test eax, eax
jne 0x401eb2
inc ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x401ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x401f64
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
push 0
push 1
lea eax, [ebp - 0x234]
push 0
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x14
add ebx, eax
mov dword [ebp - 0x250], 0
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0x254], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x401f5f
lea ecx, [ebp - 0x250]
push ecx
call eax
test eax, eax
je 0x401f5f
lea ecx, [ebp - 0x234]
call fcn.00401350
test eax, eax
jne 0x401f4f
inc ebx
test esi, esi
je 0x401f5f
push dword [ebp - 0x250]
call esi
test eax, eax
jne 0x401f64
mov ebx, 1
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x401fa0
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fc3
push edx
push ecx
call fcn.00407b35
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407b24
mov esp, ebp
pop ebp
ret
call fcn.0040b64f
call fcn.0040b64f
int3