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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522ba6
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x420]
push 0x104
push eax
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408cc4
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x57a990], eax
jmp 0x408cc9
mov eax, dword [0x57a990]
test eax, eax
je 0x408cd4
push 0x800
call eax
push 0x55ecfc
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x104
lea eax, [ebp - 0x218]
push eax
call esi
xorps xmm0, xmm0
mov dword [ebp - 0x484], 0
movq qword [ebp - 0x48c], xmm0
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x490], 7
mov dword [ebp - 0x494], 0
mov word [ebp - 0x4a4], ax
cmp word [ebp - 0x218], ax
jne 0x408d51
xor ecx, ecx
jmp 0x408d6f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408d60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00405bd0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4f0]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x578]
push dword [ebp - 0x4a8]
xorps xmm0, xmm0
mov dword [ebp - 0x460], 0
push eax
lea eax, [ebp - 0x4fc]
movq qword [ebp - 0x468], xmm0
push eax
mov dword [ebp - 0x4fc], 0x72666569
mov dword [ebp - 0x4f8], 0x2e656d61
mov dword [ebp - 0x4f4], 0x6c6c64
mov dword [ebp - 0x578], 0
mov dword [ebp - 0x574], 0
mov dword [ebp - 0x570], 0
call fcn.00409a60
mov byte [ebp - 4], 3
lea eax, [ebp - 0x444]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x56c]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x450], 0x73726576
push eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x44c], 0x2e6e6f69
push eax
mov dword [ebp - 0x448], 0x6c6c64
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 0
call fcn.00409a60
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4a8]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x560]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x4b0], 0x2e737873
push eax
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x4ac], 0x6c6c64
push eax
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x558], 0
call fcn.00409a60
mov byte [ebp - 4], 5
lea eax, [ebp - 0x4d8]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x554]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x4e4], 0x68327377
push eax
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x4e0], 0x2e706c65
push eax
mov dword [ebp - 0x4dc], 0x6c6c64
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 0
mov dword [ebp - 0x54c], 0
call fcn.00409a60
mov byte [ebp - 4], 6
mov dword [ebp - 0x4c8], 0x616d7764
mov dword [ebp - 0x4c4], 0x642e6970
mov word [ebp - 0x4c0], 0x6c6c
mov byte [ebp - 0x4be], 0
mov dword [ebp - 0x548], 0
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0
mov byte [ebp - 0x4a8], 0
push dword [ebp - 0x4a8]
lea eax, [ebp - 0x4bd]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x548]
call fcn.00409a60
mov byte [ebp - 4], 7
lea eax, [ebp - 0x420]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x53c]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x42c], 0x6d69736d
push eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x428], 0x2e323367
push eax
mov dword [ebp - 0x424], 0x6c6c64
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x534], 0
call fcn.00409a60
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4b3]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x530]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x4bc], 0x38643364
push eax
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4b8], 0x6c6c642e
push eax
mov byte [ebp - 0x4b4], 0
mov dword [ebp - 0x530], 0
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x528], 0
call fcn.00409a60
mov byte [ebp - 4], 9
lea eax, [ebp - 0x4c9]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x524]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x4d4], 0x5f327377
push eax
lea eax, [ebp - 0x4d4]
mov dword [ebp - 0x4d0], 0x642e3233
push eax
mov word [ebp - 0x4cc], 0x6c6c
mov byte [ebp - 0x4ca], 0
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 0
mov dword [ebp - 0x51c], 0
call fcn.00409a60
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x42e]
movaps xmm0, xmmword [0x561b90]
lea ecx, [ebp - 0x518]
mov byte [ebp - 0x4a8], 0
push dword [ebp - 0x4a8]
movups xmmword [ebp - 0x440], xmm0
push eax
lea eax, [ebp - 0x440]
mov word [ebp - 0x430], 0x6c
push eax
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0
mov dword [ebp - 0x510], 0
call fcn.00409a60
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x50c]
mov byte [ebp - 0x4a8], 0
push dword [ebp - 0x4a8]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 0
push eax
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x468]
call fcn.00409980
push 0x4094e0
push 9
push 0xc
lea eax, [ebp - 0x578]
mov byte [ebp - 4], 0xd
push eax
call fcn.004e129d
xor eax, eax
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
cmp word [ebp - 0x218], ax
jne 0x4091b0
xor ecx, ecx
jmp 0x4091cf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4091c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x480]
call fcn.00405bd0
mov byte [ebp - 4], 0xe
mov edi, dword [ebp - 0x468]
cmp edi, dword [ebp - 0x464]
je 0x40943f
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x424], 0
push edi
lea ecx, [ebp - 0x42c]
movq qword [ebp - 0x42c], xmm0
call fcn.004094f0
mov ebx, 7
xor edx, edx
xor eax, eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x434], edx
mov word [ebp - 0x444], ax
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x42c]
cmp esi, dword [ebp - 0x428]
je 0x4092f7
mov al, byte [esi]
cbw
movzx ecx, ax
mov dword [ebp - 0x4a8], ecx
cmp edx, ebx
jne 0x4092b0
lea eax, [edx + 1]
cmp eax, 0x7ffffffe
ja 0x4094bf
cmp ebx, eax
jae 0x409285
push edx
push eax
lea ecx, [ebp - 0x444]
call fcn.004059a0
jmp 0x4092a4
test eax, eax
jne 0x4092b0
mov dword [ebp - 0x434], eax
cmp ebx, 8
lea eax, [ebp - 0x444]
cmovae eax, dword [ebp - 0x444]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x434]
mov ebx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x4a8]
lea ecx, [ebp - 0x444]
cmp ebx, 8
cmovae ecx, dword [ebp - 0x444]
inc esi
mov word [ecx + edx*2], ax
xor edx, edx
mov eax, dword [ebp - 0x434]
inc eax
mov dword [ebp - 0x434], eax
mov word [ecx + eax*2], dx
cmp esi, dword [ebp - 0x428]
je 0x4092f7
mov ebx, dword [ebp - 0x430]
mov edx, dword [ebp - 0x434]
jmp 0x409253
push ecx
lea edx, [ebp - 0x480]
lea ecx, [ebp - 0x508]
call fcn.00409880
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 0x11
push ecx
mov edx, eax
lea ecx, [ebp - 0x45c]
call fcn.00409750
add esp, 8
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x4f4]
cmp eax, 8
jb 0x409346
inc eax
lea ecx, [ebp - 0x508]
push eax
push dword [ebp - 0x508]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x4f4], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x508], ax
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4e0], eax
mov word [ebp - 0x4f0], ax
lea eax, [ebp - 0x45c]
push eax
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4dc], 7
call fcn.00405820
cmp dword [ebp - 0x4dc], 8
lea eax, [ebp - 0x4f0]
cmovae eax, dword [ebp - 0x4f0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [ebp - 0x4dc]
cmp eax, 8
jb 0x4093c8
inc eax
lea ecx, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4f0]
call fcn.00405d30
mov eax, dword [ebp - 0x448]
cmp eax, 8
jb 0x4093e6
inc eax
lea ecx, [ebp - 0x45c]
push eax
push dword [ebp - 0x45c]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x44c], 0
cmp eax, 8
jb 0x409421
inc eax
lea ecx, [ebp - 0x444]
push eax
push dword [ebp - 0x444]
call fcn.00405d30
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0xe
call fcn.00409620
add edi, 0xc
cmp edi, dword [ebp - 0x464]
jne 0x409200
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x40945d
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00405d30
xor eax, eax
mov dword [ebp - 0x46c], 7
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
call fcn.004095c0
mov eax, dword [ebp - 0x490]
cmp eax, 8
jb 0x4094a3
inc eax
lea ecx, [ebp - 0x4a4]
push eax
push dword [ebp - 0x4a4]
call fcn.00405d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0fae
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004de5d7
int3