Function at 0x406f40
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5237
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x517748]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push esi
push edi
mov eax, dword [0x517748]
xor eax, esp
push eax
lea eax, [esp + 0x368]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [esp + 0xa8], 0x53005c
mov dword [esp + 0xac], 0x730079
mov dword [esp + 0xb0], 0x650074
mov dword [esp + 0xb4], 0x33006d
mov dword [esp + 0xb8], 0x5c0032
mov dword [esp + 0xbc], 0x730063
mov dword [esp + 0xc0], 0x730072
mov dword [esp + 0xc4], 0x2e0073
mov dword [esp + 0xc8], 0x780065
mov dword [esp + 0xcc], 0x65
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
cmp word [esp + 0x154], ax
jne 0x40702e
xor ecx, ecx
jmp 0x40704f
lea ecx, [esp + 0x154]
lea edx, [ecx + 2]
jmp 0x407040
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407040
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x7c]
call fcn.0040cee0
mov dword [esp + 0x370], 0
cmp word [esp + 0xa8], 0
jne 0x40707b
xor ecx, ecx
jmp 0x407094
lea ecx, [esp + 0xa8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407085
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x7c]
call fcn.0040e8a0
xor eax, eax
mov dword [esp + 0xd0], 0x53005c
mov dword [esp + 0xd4], 0x730079
mov dword [esp + 0xd8], 0x650074
mov dword [esp + 0xdc], 0x33006d
mov dword [esp + 0xe0], 0x5c0032
mov dword [esp + 0xe4], 0x73006c
mov dword [esp + 0xe8], 0x730061
mov dword [esp + 0xec], 0x2e0073
mov dword [esp + 0xf0], 0x780065
mov dword [esp + 0xf4], 0x65
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [esp + 0x154], ax
jne 0x407139
xor ecx, ecx
jmp 0x407152
lea ecx, [esp + 0x154]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407143
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040cee0
mov byte [esp + 0x370], 1
cmp word [esp + 0xd0], 0
jne 0x40717b
xor ecx, ecx
jmp 0x407194
lea ecx, [esp + 0xd0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407185
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e8a0
xor eax, eax
mov dword [esp + 0x124], 0x53005c
mov dword [esp + 0x128], 0x730079
mov dword [esp + 0x12c], 0x650074
mov dword [esp + 0x130], 0x33006d
mov dword [esp + 0x134], 0x5c0032
mov dword [esp + 0x138], 0x690077
mov dword [esp + 0x13c], 0x6c006e
mov dword [esp + 0x140], 0x67006f
mov dword [esp + 0x144], 0x6e006f
mov dword [esp + 0x148], 0x65002e
mov dword [esp + 0x14c], 0x650078
mov word [esp + 0x150], ax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], eax
mov word [esp + 0x44], ax
cmp word [esp + 0x154], ax
jne 0x407248
xor ecx, ecx
jmp 0x407261
lea ecx, [esp + 0x154]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407252
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040cee0
mov byte [esp + 0x370], 2
cmp word [esp + 0x124], 0
jne 0x40728a
xor ecx, ecx
jmp 0x4072a3
lea ecx, [esp + 0x124]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407294
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040e8a0
mov edx, 0x32
mov dword [esp + 0xf8], 0x53005c
xor eax, eax
mov dword [esp + 0xfc], 0x730079
mov dword [esp + 0x100], 0x650074
mov dword [esp + 0x104], 0x33006d
lea ebx, [edx + 0x46]
mov dword [esp + 0x108], 0x5c0032
mov dword [esp + 0x10c], 0x760073
mov dword [esp + 0x110], 0x680063
mov dword [esp + 0x114], 0x73006f
mov dword [esp + 0x118], 0x2e0074
mov dword [esp + 0x11c], 0x780065
mov dword [esp + 0x120], 0x65
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esp + 0x154], ax
jne 0x40735b
xor ecx, ecx
jmp 0x407374
lea ecx, [esp + 0x154]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407365
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x34]
call fcn.0040cee0
mov byte [esp + 0x370], 3
cmp word [esp + 0xf8], 0
jne 0x40739d
xor ecx, ecx
jmp 0x4073b6
lea ecx, [esp + 0xf8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073a7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x34]
call fcn.0040e8a0
xor eax, eax
mov dword [esp + 0x8c], 0x65005c
mov dword [esp + 0x90], 0x700078
mov dword [esp + 0x94], 0x6f006c
mov dword [esp + 0x98], 0x650072
mov dword [esp + 0x9c], 0x2e0072
mov dword [esp + 0xa0], 0x780065
mov dword [esp + 0xa4], 0x65
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
cmp word [esp + 0x154], ax
jne 0x40743a
xor ecx, ecx
jmp 0x407453
lea ecx, [esp + 0x154]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407444
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x64]
call fcn.0040cee0
mov byte [esp + 0x370], 4
cmp word [esp + 0x8c], 0
jne 0x40747c
xor ecx, ecx
jmp 0x407495
lea ecx, [esp + 0x8c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407486
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x64]
call fcn.0040e8a0
cmp dword [esp + 0x88], 8
lea eax, [esp + 0x74]
mov ecx, esi
cmovae eax, dword [esp + 0x74]
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4074e6
test dx, dx
je 0x4074e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4074e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4074c0
xor eax, eax
jmp 0x4074eb
sbb eax, eax
or eax, 1
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x4075c3
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
mov ecx, esi
cmovae eax, dword [esp + 0x14]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40752d
test dx, dx
je 0x407529
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40752d
add ecx, 4
add eax, 4
test dx, dx
jne 0x407507
xor eax, eax
jmp 0x407532
sbb eax, eax
or eax, 1
test eax, eax
je 0x4075c3
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
mov ecx, esi
cmovae eax, dword [esp + 0x44]
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x407576
test dx, dx
je 0x407572
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x407576
add ecx, 4
add eax, 4
test dx, dx
jne 0x407550
xor eax, eax
jmp 0x40757b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4075c3
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, edi
jmp 0x407590
mov cx, word [esi]
cmp cx, word [eax]
jne 0x4075b6
test cx, cx
je 0x4075b2
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x4075b6
add esi, 4
add eax, 4
test cx, cx
jne 0x407590
xor eax, eax
jmp 0x4075bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4075c3
xor bl, bl
jmp 0x4075c5
mov bl, 1
cmp dword [esp + 0x70], 8
jb 0x4075dc
push dword [esp + 0x5c]
call fcn.00440f10
mov edi, dword [esp + 0x30]
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
cmp dword [esp + 0x40], 8
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x407603
push edi
call fcn.00440f10
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
cmp dword [esp + 0x58], 8
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jb 0x40762d
push dword [esp + 0x44]
call fcn.00440f10
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
cmp dword [esp + 0x28], 8
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
jb 0x407657
push dword [esp + 0x14]
call fcn.00440f10
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
cmp dword [esp + 0x88], 8
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
jb 0x407684
push dword [esp + 0x74]
call fcn.00440f10
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x368]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret