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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522b3b
mov eax, dword fs:[0]
push eax
sub esp, 0x55c
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 0x408d14
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x57a990], eax
jmp 0x408d19
mov eax, dword [0x57a990]
test eax, eax
je 0x408d24
push 0x800
call eax
push 0x55ed04
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 0x408da1
xor ecx, ecx
jmp 0x408dbf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408db0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00405c20
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4d4]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x568]
push dword [ebp - 0x4a8]
xorps xmm0, xmm0
mov dword [ebp - 0x460], 0
push eax
lea eax, [ebp - 0x4e0]
movq qword [ebp - 0x468], xmm0
push eax
mov dword [ebp - 0x4e0], 0x72666569
mov dword [ebp - 0x4dc], 0x2e656d61
mov dword [ebp - 0x4d8], 0x6c6c64
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x560], 0
call fcn.00409a30
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4e0]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x55c]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x4ec], 0x73726576
push eax
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4e8], 0x2e6e6f69
push eax
mov dword [ebp - 0x4e4], 0x6c6c64
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x558], 0
mov dword [ebp - 0x554], 0
call fcn.00409a30
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4a8]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x550]
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 - 0x550], 0
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x548], 0
call fcn.00409a30
mov byte [ebp - 4], 5
lea eax, [ebp - 0x444]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x544]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x450], 0x68327377
push eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x44c], 0x2e706c65
push eax
mov dword [ebp - 0x448], 0x6c6c64
mov dword [ebp - 0x544], 0
mov dword [ebp - 0x540], 0
mov dword [ebp - 0x53c], 0
call fcn.00409a30
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 - 0x538], 0
mov dword [ebp - 0x534], 0
mov dword [ebp - 0x530], 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 - 0x538]
call fcn.00409a30
mov byte [ebp - 4], 7
lea eax, [ebp - 0x420]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x52c]
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 - 0x52c], 0
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x524], 0
call fcn.00409a30
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4b3]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x520]
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 - 0x520], 0
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x518], 0
call fcn.00409a30
mov byte [ebp - 4], 9
lea eax, [ebp - 0x4c9]
mov byte [ebp - 0x4a8], 0
lea ecx, [ebp - 0x514]
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 - 0x514], 0
mov dword [ebp - 0x510], 0
mov dword [ebp - 0x50c], 0
call fcn.00409a30
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x42e]
movaps xmm0, xmmword [0x561b60]
lea ecx, [ebp - 0x508]
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 - 0x508], 0
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x500], 0
call fcn.00409a30
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x4fc]
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 - 0x568]
push eax
lea ecx, [ebp - 0x468]
call fcn.00409950
push 0x4094b0
push 9
push 0xc
lea eax, [ebp - 0x568]
mov byte [ebp - 4], 0xd
push eax
call fcn.004e126b
xor eax, eax
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
cmp word [ebp - 0x218], ax
jne 0x409200
xor ecx, ecx
jmp 0x40921f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409210
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x480]
call fcn.00405c20
mov byte [ebp - 4], 0xe
mov edi, dword [ebp - 0x468]
cmp edi, dword [ebp - 0x464]
je 0x409409
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.004094c0
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 0x409347
mov al, byte [esi]
cbw
movzx ecx, ax
mov dword [ebp - 0x4a8], ecx
cmp edx, ebx
jne 0x409300
lea eax, [edx + 1]
cmp eax, 0x7ffffffe
ja 0x409489
cmp ebx, eax
jae 0x4092d5
push edx
push eax
lea ecx, [ebp - 0x444]
call fcn.004059f0
jmp 0x4092f4
test eax, eax
jne 0x409300
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 0x409347
mov ebx, dword [ebp - 0x430]
mov edx, dword [ebp - 0x434]
jmp 0x4092a3
push ecx
lea edx, [ebp - 0x480]
lea ecx, [ebp - 0x4f8]
call fcn.00409850
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 0x11
push ecx
mov edx, eax
lea ecx, [ebp - 0x45c]
call fcn.00409720
mov eax, dword [ebp - 0x4e4]
add esp, 8
cmp eax, 8
jb 0x409392
inc eax
lea ecx, [ebp - 0x4f8]
push eax
push dword [ebp - 0x4f8]
call fcn.00405d80
mov eax, dword [ebp - 0x448]
cmp eax, 8
jb 0x4093b0
inc eax
lea ecx, [ebp - 0x45c]
push eax
push dword [ebp - 0x45c]
call fcn.00405d80
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 0x4093eb
inc eax
lea ecx, [ebp - 0x444]
push eax
push dword [ebp - 0x444]
call fcn.00405d80
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0xe
call fcn.004095f0
add edi, 0xc
cmp edi, dword [ebp - 0x464]
jne 0x409250
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x409427
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00405d80
xor eax, eax
mov dword [ebp - 0x46c], 7
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
call fcn.00409590
mov eax, dword [ebp - 0x490]
cmp eax, 8
jb 0x40946d
inc eax
lea ecx, [ebp - 0x4a4]
push eax
push dword [ebp - 0x4a4]
call fcn.00405d80
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.004e0f8e
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004de5b7
int3