Function at 0x404ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d638
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push esi
push edi
push str.____Context_initialize..._n
call fcn.00401d10
add esp, 4
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateJobObjectW]
mov esi, eax
mov dword [0x457478], esi
test esi, esi
je 0x404d46
push 0x6c
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0
push 0
push eax
call fcn.004228c0
add esp, 0xc
mov dword [ebp - 0x100], 0x2000
lea eax, [ebp - 0x110]
push 0x70
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.DLL_SetInformationJobObject]
test eax, eax
jne 0x404d53
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.____SetInformationJobObject_failed_0x_X_n
call fcn.00401d10
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.____Job_object_not_created_n
call fcn.00401d10
add esp, 4
call fcn.00403700
test al, al
je 0x404d34
push 0x104
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
jne 0x404d91
push str.____Can_t_get_windows_directory_n
call fcn.00401d10
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00402f40
call fcn.00404730
sub esp, 0x18
mov ecx, esp
sub esp, 8
mov eax, esp
mov dword [eax], str.APPDATA
mov dword [eax + 4], 7
call fcn.0041e3b0
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.0041dc40
mov esi, eax
add esp, 0x18
cmp esi, 0x450a08
je 0x404e53
mov edx, dword [0x450a1c]
cmp edx, 8
jb 0x404e13
mov ecx, dword [0x450a08]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x404e09
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4056ae
mov ecx, edi
push edx
push ecx
call fcn.00420d85
add esp, 8
mov dword [0x450a18], 0
xor eax, eax
mov dword [0x450a1c], 7
mov word [0x450a08], ax
movups xmm0, xmmword [esi]
movups xmmword [0x450a08], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x450a18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x404e8d
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404e83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056ae
push ecx
push edx
call fcn.00420d85
add esp, 8
sub esp, 0x18
mov ecx, esp
sub esp, 8
mov eax, esp
mov dword [eax], str.LOCALAPPDATA
mov dword [eax + 4], 0xc
call fcn.0041e3b0
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.0041dc40
mov esi, eax
add esp, 0x18
cmp esi, 0x450a5c
je 0x404f45
mov edx, dword [0x450a70]
cmp edx, 8
jb 0x404f05
mov ecx, dword [0x450a5c]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x404efb
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4056b3
mov ecx, edi
push edx
push ecx
call fcn.00420d85
add esp, 8
mov dword [0x450a6c], 0
xor eax, eax
mov dword [0x450a70], 7
mov word [0x450a5c], ax
movups xmm0, xmmword [esi]
movups xmmword [0x450a5c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x450a6c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x404f7f
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404f75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056b3
push ecx
push edx
call fcn.00420d85
add esp, 8
sub esp, 0x18
mov ecx, esp
sub esp, 8
mov eax, esp
mov dword [eax], str.ALLUSERSPROFILE
mov dword [eax + 4], 0xf
call fcn.0041e3b0
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.0041dc40
mov esi, eax
add esp, 0x18
cmp esi, 0x450a44
je 0x405037
mov edx, dword [0x450a58]
cmp edx, 8
jb 0x404ff7
mov ecx, dword [0x450a44]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x404fed
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4056b8
mov ecx, edi
push edx
push ecx
call fcn.00420d85
add esp, 8
mov dword [0x450a54], 0
xor eax, eax
mov dword [0x450a58], 7
mov word [0x450a44], ax
movups xmm0, xmmword [esi]
movups xmmword [0x450a44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x450a54], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x405071
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405067
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056b8
push ecx
push edx
call fcn.00420d85
add esp, 8
sub esp, 0x18
lea ecx, [ebp - 0x318]
mov edx, esp
lea esi, [ecx + 2]
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405093
sub ecx, esi
lea eax, [ebp - 0x318]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00401e30
lea ecx, [ebp - 0x34]
call fcn.0041dc40
mov esi, eax
add esp, 0x18
cmp esi, 0x4509e4
je 0x40514a
mov edx, dword [0x4509f8]
cmp edx, 8
jb 0x40510a
mov ecx, dword [0x4509e4]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x405100
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4056bd
mov ecx, edi
push edx
push ecx
call fcn.00420d85
add esp, 8
mov dword [0x4509f4], 0
xor eax, eax
mov dword [0x4509f8], 7
mov word [0x4509e4], ax
movups xmm0, xmmword [esi]
movups xmmword [0x4509e4], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x4509f4], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x405184
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40517a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056bd
push ecx
push edx
call fcn.00420d85
add esp, 8
cmp dword [0x450a40], 8
mov eax, 0x450a2c
cmovae eax, dword [0x450a2c]
push eax
push str.___sCurrentEXE:__s_n
call fcn.00401d10
cmp dword [0x450a1c], 8
mov eax, 0x450a08
cmovae eax, dword [0x450a08]
push eax
push str.___sAPPDATA:__s_n
call fcn.00401d10
cmp dword [0x450a70], 8
mov eax, 0x450a5c
cmovae eax, dword [0x450a5c]
push eax
push str.___sLOCALAPPDATA:__s_n
call fcn.00401d10
cmp dword [0x450a58], 8
mov eax, 0x450a44
cmovae eax, dword [0x450a44]
push eax
push str.___sALLUSERSPROFILE:__s_n
call fcn.00401d10
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
xor eax, eax
mov dword [ebp - 0x50], 7
movups xmmword [ebp - 0x64], xmm0
add esp, 0x20
mov word [ebp - 0x64], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00403430
test al, al
je 0x405291
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
mov ecx, 0x450ae0
push eax
call fcn.00412d00
add esp, 8
test eax, eax
je 0x405613
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
mov ecx, 0x4509d8
push eax
call fcn.00412d00
add esp, 8
test eax, eax
je 0x405613
mov eax, str.___Keys_retrieved_from_registry_n
jmp 0x4052f7
call fcn.00412df0
test eax, eax
je 0x405613
mov edx, 0x4509d8
mov ecx, 0x4509cc
call fcn.00412fa0
test eax, eax
je 0x405613
lea edx, [ebp - 0x64]
mov ecx, 0x450ae0
call fcn.00412b80
test eax, eax
je 0x405613
lea edx, [ebp - 0x4c]
mov ecx, 0x4509d8
call fcn.00412b80
test eax, eax
je 0x405613
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.00403190
test al, al
je 0x405613
mov eax, str.___Keys_saved_to_registry_n
push eax
call fcn.00401d10
mov eax, dword [0x450ae4]
add esp, 4
sub eax, dword [0x450ae0]
cmp eax, 0x114
jne 0x405613
mov eax, dword [0x4509dc]
sub eax, dword [0x4509d8]
cmp eax, 0x500
jne 0x405613
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push str._IDENTIFIER_
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x34], xmm0
call fcn.00401e30
push 0x450aa4
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.00402010
mov byte [ebp - 4], 3
xor esi, esi
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
cmp edi, 8
cmovae ecx, eax
cmp dword [ebp - 0x74], 8
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x88]
cmovae ecx, dword [ebp - 0x88]
mov dword [ebp - 0x18], ecx
cmp edx, eax
ja 0x405461
sub eax, edx
cmp esi, eax
ja 0x405461
test edx, edx
je 0x405438
inc eax
lea esi, [ecx + esi*2]
lea edi, [ecx + eax*2]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], edi
movzx edx, word [eax]
mov dword [ebp - 0x6c], edx
mov ecx, edi
mov edi, 0
sub ecx, esi
sar ecx, 1
je 0x4053ef
movzx eax, word [esi]
cmp ax, dx
je 0x4053ea
cmp ecx, 1
je 0x4053ec
movzx eax, word [esi + 2]
add esi, 2
dec ecx
cmp ax, dx
jne 0x4053d8
mov edi, esi
mov eax, dword [ebp - 0x14]
mov esi, edi
test esi, esi
je 0x405461
mov edi, dword [ebp - 0x24]
mov edx, eax
test edi, edi
je 0x40542d
mov eax, esi
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
movzx ecx, word [edx + eax]
movzx eax, word [edx]
cmp cx, ax
jne 0x40541f
add edx, 2
sub edi, 1
je 0x40542d
mov eax, dword [ebp - 0x68]
jmp 0x405406
mov edx, dword [ebp - 0x6c]
add esi, 2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x70]
jmp 0x4053c3
sub esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
sar esi, 1
cmp esi, 0xffffffff
je 0x405461
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x88]
push eax
push edx
push esi
call fcn.0041ece0
add esi, dword [ebp - 0x3c]
jmp 0x40536d
movq xmm1, qword [ebp - 0x78]
xor eax, eax
movups xmm0, xmmword [ebp - 0x88]
mov byte [ebp - 4], 2
mov ecx, dword [0x450ab8]
movq qword [ebp - 0x1c], xmm1
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
movups xmmword [ebp - 0x98], xmm0
cmp ecx, 8
jb 0x4054df
mov eax, dword [0x450aa4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4054c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056c2
mov eax, edx
push ecx
push eax
call fcn.00420d85
movups xmm0, xmmword [ebp - 0x98]
add esp, 8
movq xmm1, qword [ebp - 0x1c]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
movq qword [0x450ab4], xmm1
movups xmmword [0x450aa4], xmm0
cmp eax, 8
jb 0x40552c
mov edx, dword [ebp - 0x34]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405522
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056c2
push ecx
push edx
call fcn.00420d85
add esp, 8
mov edx, 0x450aa4
lea ecx, [ebp - 0xa0]
call fcn.0041e130
mov esi, eax
cmp esi, 0x450a80
je 0x4055c6
mov ecx, dword [0x450a94]
cmp ecx, 0x10
jb 0x405583
mov eax, dword [0x450a80]
inc ecx
cmp ecx, 0x1000
jb 0x405579
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056c7
mov eax, edx
push ecx
push eax
call fcn.00420d85
add esp, 8
mov dword [0x450a90], 0
mov dword [0x450a94], 0xf
mov byte [0x450a80], 0
movups xmm0, xmmword [esi]
movups xmmword [0x450a80], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x450a90], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0x10
jb 0x405600
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4055f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056c7
push ecx
push edx
call fcn.00420d85
add esp, 8
push str.___Context_initialized_n
call fcn.00401d10
add esp, 4
mov byte [ebp - 0xd], 1
jmp 0x405617
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x405651
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405647
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056cc
push ecx
push edx
call fcn.00420d85
add esp, 8
mov ecx, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
cmp ecx, 8
jb 0x40569b
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405691
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056cc
push ecx
push edx
call fcn.00420d85
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0042d25f
call fcn.0042d25f
call fcn.0042d25f
call fcn.0042d25f
call fcn.0042d25f
call fcn.0042d25f
call fcn.0042d25f
int3