Function at 0x405660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42772e
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x439018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00410cb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405f5c
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x458], 0
xor eax, eax
movq qword [ebp - 0x224], xmm0
push str.comctl32.dll
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
call fcn.00401bb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x440]
push 0xb
xor eax, eax
mov dword [ebp - 0x440], 0
push str.crypt32.dll
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
call fcn.00401bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
push 0xc
xor eax, eax
mov dword [ebp - 0x428], 0
push str.iphlpapi.dll
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
call fcn.00401bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x410]
push 7
xor eax, eax
mov dword [ebp - 0x410], 0
push str.msi.dll
mov dword [ebp - 0x400], 0
mov dword [ebp - 0x3fc], 7
mov word [ebp - 0x410], ax
call fcn.00401bb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3f8]
push 0xc
xor eax, eax
mov dword [ebp - 0x3f8], 0
push str.oleaut32.dll
mov dword [ebp - 0x3e8], 0
mov dword [ebp - 0x3e4], 7
mov word [ebp - 0x3f8], ax
call fcn.00401bb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3e0]
push 0xc
xor eax, eax
mov dword [ebp - 0x3e0], 0
push str.rasapi32.dll
mov dword [ebp - 0x3d0], 0
mov dword [ebp - 0x3cc], 7
mov word [ebp - 0x3e0], ax
call fcn.00401bb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c8]
push 0xb
xor eax, eax
mov dword [ebp - 0x3c8], 0
push str.shell32.dll
mov dword [ebp - 0x3b8], 0
mov dword [ebp - 0x3b4], 7
mov word [ebp - 0x3c8], ax
call fcn.00401bb0
mov byte [ebp - 4], 6
mov dword [ebp - 0x3b0], 0
push 0xb
xor eax, eax
mov dword [ebp - 0x3a0], 0
push str.shlwapi.dll
lea ecx, [ebp - 0x3b0]
mov dword [ebp - 0x39c], 7
mov word [ebp - 0x3b0], ax
call fcn.00401bb0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x398]
push 0xa
xor eax, eax
mov dword [ebp - 0x398], 0
push str.urlmon.dll
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x384], 7
mov word [ebp - 0x398], ax
call fcn.00401bb0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x380]
push 0xb
xor eax, eax
mov dword [ebp - 0x380], 0
push str.userenv.dll
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x36c], 7
mov word [ebp - 0x380], ax
call fcn.00401bb0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x368]
push 0xb
xor eax, eax
mov dword [ebp - 0x368], 0
push str.version.dll
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x354], 7
mov word [ebp - 0x368], ax
call fcn.00401bb0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x350]
push 0xb
xor eax, eax
mov dword [ebp - 0x350], 0
push str.wininet.dll
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], 7
mov word [ebp - 0x350], ax
call fcn.00401bb0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x338]
push 0xc
xor eax, eax
mov dword [ebp - 0x338], 0
push str.wtsapi32.dll
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 7
mov word [ebp - 0x338], ax
call fcn.00401bb0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x320]
push 0xb
xor eax, eax
mov dword [ebp - 0x320], 0
push str.profapi.dll
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x30c], 7
mov word [ebp - 0x320], ax
call fcn.00401bb0
mov byte [ebp - 4], 0xd
xor eax, eax
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
push 0xc
push str.wintrust.dll
lea ecx, [ebp - 0x308]
call fcn.00401bb0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2f0]
push 0xb
xor eax, eax
mov dword [ebp - 0x2f0], 0
push str.cryptsp.dll
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 7
mov word [ebp - 0x2f0], ax
call fcn.00401bb0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2d8]
push 0xd
xor eax, eax
mov dword [ebp - 0x2d8], 0
push str.cryptbase.dll
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 7
mov word [ebp - 0x2d8], ax
call fcn.00401bb0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c0]
push 0xa
xor eax, eax
mov dword [ebp - 0x2c0], 0
push str.rsaenh.dll
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
call fcn.00401bb0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2a8]
push 0xa
xor eax, eax
mov dword [ebp - 0x2a8], 0
push str.msasn1.dll
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.00401bb0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x290]
push 9
xor eax, eax
mov dword [ebp - 0x290], 0
push str.psapi.dll
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
call fcn.00401bb0
mov dword [ebp - 4], 0x13
push 0x1e0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call fcn.0040f1a2
mov esi, eax
add esp, 4
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x270], eax
lea ecx, [esi + 0x1e0]
mov dword [ebp - 0x21c], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
movq qword [ebp - 0x230], xmm0
lea edi, [ebp - 0x458]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 0x15
push edi
mov ecx, esi
call fcn.00404170
add esi, 0x18
lea eax, [ebp - 0x278]
add edi, 0x18
mov dword [ebp - 0x22c], esi
cmp edi, eax
jne 0x405c24
push ecx
mov edx, esi
mov ecx, esi
call fcn.0040d5c0
add esp, 4
mov dword [ebp - 0x220], esi
push fcn.00401b50
push 0x14
push 0x18
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 0x17
push eax
call fcn.0040f2ac
xor eax, eax
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
lea edx, [ecx + 2]
mov word [ebp - 0x248], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ca0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00401bb0
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x248]
mov edi, dword [ebp - 0x234]
cmp edi, 8
mov edx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x238]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x5c
je 0x405d48
mov eax, edi
sub eax, esi
cmp eax, 1
jb 0x405d1b
cmp edi, 8
lea eax, [ebp - 0x248]
lea ecx, [esi + 1]
cmovae eax, edx
mov dword [ebp - 0x238], ecx
mov edx, 0x5c
mov word [eax + esi*2], dx
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x405d3c
push 1
push 0x435188
mov byte [ebp - 0x264], 0
lea ecx, [ebp - 0x248]
push dword [ebp - 0x264]
push 1
call fcn.00404a50
mov edx, dword [ebp - 0x248]
mov edi, dword [ebp - 0x234]
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x270], eax
cmp esi, eax
je 0x405f04
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00404170
mov byte [ebp - 4], 0x19
mov ecx, esi
cmp dword [esi + 0x14], 8
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x264], esi
jb 0x405d91
mov ecx, dword [esi]
mov dword [ebp - 0x264], ecx
mov edi, dword [ebp - 0x250]
mov eax, dword [ebp - 0x24c]
sub eax, edi
mov dword [ebp - 0x274], edi
cmp edx, eax
ja 0x405df6
cmp dword [ebp - 0x24c], 8
lea eax, [edx + edi]
mov dword [ebp - 0x268], eax
lea edi, [ebp - 0x260]
cmovae edi, dword [ebp - 0x260]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x274]
lea ecx, [edi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x264]
push ecx
call fcn.00410730
mov eax, dword [ebp - 0x268]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x405e11
push edx
push ecx
mov byte [ebp - 0x278], 0
lea ecx, [ebp - 0x260]
push dword [ebp - 0x278]
push edx
call fcn.00404a50
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push 8
cmovae eax, dword [ebp - 0x260]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x268], eax
test eax, eax
je 0x405ea5
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 0x1a
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x405e79
mov ecx, edi
xor edx, edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x268]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x26c]
add dword [ecx + 4], 8
jmp 0x405e92
lea edx, [ebp - 0x22c]
push edx
push eax
call fcn.0040cee0
mov edx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x22c]
mov byte [ebp - 4], 0x1b
test edx, edx
je 0x405ea5
push edx
mov ecx, edi
call dword [0x429174]
call edi
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x405ee9
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405edf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f77
push edx
push ecx
call fcn.0040f194
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x270]
jne 0x405d62
mov edi, dword [ebp - 0x234]
mov edx, dword [ebp - 0x248]
cmp edi, 8
jb 0x405f34
lea edi, [edi*2 + 2]
mov eax, edx
cmp edi, 0x1000
jb 0x405f2a
mov edx, dword [edx - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f77
push edi
push edx
call fcn.0040f194
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.0040b790
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ef0a
mov esp, ebp
pop ebp
ret
call fcn.004134aa
int3