Function at 0x401540
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e46d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4b8
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 0x4ac], ecx
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x4bc], eax
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 8
xor eax, eax
mov dword [ebp - 0x460], 0
push 0x4255f4
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
call fcn.004047d0
mov dword [ebp - 4], 0
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x4015f3
mov edx, dword [edi]
mov ecx, dword [edi + 0x10]
lea eax, [edi + 0x10]
mov esi, dword [ebp - 0x460]
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp - 0x45c]
sub eax, esi
mov dword [ebp - 0x4a4], esi
cmp ecx, eax
ja 0x401659
cmp dword [ebp - 0x45c], 8
lea edi, [ecx + esi]
lea eax, [ecx + ecx]
mov dword [ebp - 0x460], edi
push eax
mov eax, dword [ebp - 0x4a4]
lea esi, [ebp - 0x470]
cmovae esi, dword [ebp - 0x470]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00409010
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x4a8]
jmp 0x401674
push ecx
push edx
mov byte [ebp - 0x4a4], 0
push dword [ebp - 0x4a4]
push ecx
lea ecx, [ebp - 0x470]
call fcn.00404150
push 0
push 0
push 0
push 0
push 0x100
lea eax, [ebp - 0x428]
push eax
push 3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040cc33
add esp, 0x24
mov dword [ebp - 0x448], 0
xor eax, eax
mov dword [ebp - 0x444], 7
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x458], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4016c0
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.004047d0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x458]
call fcn.00404370
mov dword [ebp - 0x430], 0
xor ecx, ecx
mov dword [ebp - 0x42c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x430], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0x4a0]
call fcn.00403a20
mov esi, dword [ebp - 0x4ac]
add esp, 4
mov ecx, esi
push eax
call fcn.00403650
mov edx, dword [ebp - 0x48c]
cmp edx, 8
jb 0x4017a0
mov ecx, dword [ebp - 0x4a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401796
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cf3
push edx
push ecx
call fcn.00407b35
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x48c], 7
mov word [ebp - 0x4a0], ax
cmp edx, 8
jb 0x401801
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4017f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cf8
push edx
push ecx
call fcn.00407b35
add esp, 8
xor eax, eax
mov dword [ebp - 0x430], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
cmp edx, 8
jb 0x401861
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401857
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cfd
push edx
push ecx
call fcn.00407b35
add esp, 8
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x448], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4018a0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x458]
call fcn.004047d0
push 0x425608
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 3
call fcn.00404370
mov dword [ebp - 0x430], 0
xor ecx, ecx
mov dword [ebp - 0x42c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x430], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push edi
lea edx, [ebp - 0x440]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x488]
call fcn.00403a20
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x401971
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401967
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d02
push edx
push ecx
call fcn.00407b35
add esp, 8
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x4019d2
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4019c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d07
push edx
push ecx
call fcn.00407b35
add esp, 8
xor eax, eax
mov dword [ebp - 0x448], 0
lea edx, [ebp - 0x488]
mov dword [ebp - 0x444], 7
mov ecx, esi
mov word [ebp - 0x458], ax
call fcn.00401140
test eax, eax
je 0x401c35
push 1
push 0
push 0
lea eax, [ebp - 0x488]
push 1
push eax
call dword [ebp - 0x4bc]
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x4b8], esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x401a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x401c3a
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
mov edx, 0x425628
lea ecx, [ebp - 0x4a0]
call fcn.00403c50
add esp, 4
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 8
cmp dword [edi + 0x14], 8
jb 0x401a74
mov edi, dword [edi]
mov dword [ebp - 0x4a8], edi
mov ecx, dword [ebp - 0x4ac]
mov edx, ecx
mov dword [ebp - 0x4b4], ecx
cmp dword [ecx + 0x14], 8
jb 0x401a90
mov edx, dword [ecx]
mov dword [ebp - 0x4b4], edx
mov eax, dword [ebp - 0x4b0]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x4b0], eax
test eax, eax
jne 0x401ab0
or esi, 0xffffffff
cmp ecx, 0xffffffff
cmovb esi, ecx
jmp 0x401b14
cmp eax, ecx
ja 0x401b3a
sub ecx, eax
or eax, 0xffffffff
cmp ecx, eax
cmovb eax, ecx
mov ecx, dword [ebp - 0x4a8]
lea esi, [edx + eax*2]
movzx eax, word [edi]
mov edi, esi
mov dword [ebp - 0x4c0], eax
sub edi, ecx
nop dword [eax + eax]
cmp word [esi], ax
jne 0x401b88
mov eax, dword [ebp - 0x4b0]
mov edx, eax
test eax, eax
je 0x401b0c
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x401b76
add ecx, 2
sub edx, 1
jne 0x401af5
mov eax, dword [ebp - 0x4b0]
sub esi, dword [ebp - 0x4b4]
sar esi, 1
cmp esi, 0xffffffff
je 0x401b3a
mov edx, dword [ebp - 0x4c4]
mov ecx, edx
cmp dword [edx + 0x14], 8
jb 0x401b29
mov ecx, dword [edx]
push dword [edx + 0x10]
push ecx
mov ecx, dword [ebp - 0x4ac]
push eax
push esi
call fcn.00403730
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x48c]
cmp edx, 8
jb 0x401ba1
mov ecx, dword [ebp - 0x4a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d0c
jmp 0x401b97
mov ecx, dword [ebp - 0x4a8]
mov edx, dword [ebp - 0x4b4]
mov eax, dword [ebp - 0x4c0]
cmp esi, edx
je 0x401b3a
sub esi, 2
sub edi, 2
jmp 0x401ae0
push edx
push ecx
call fcn.00407b35
add esp, 8
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0x4a4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov esi, eax
test edi, edi
je 0x401c35
lea eax, [ebp - 0x4a4]
push eax
call edi
test eax, eax
je 0x401c35
mov ecx, dword [ebp - 0x4ac]
lea edx, [ebp - 0x488]
call fcn.00401140
test eax, eax
je 0x401c35
push 1
push 0
push 1
lea eax, [ebp - 0x488]
push 1
push eax
call dword [ebp - 0x4bc]
add dword [ebp - 0x4b8], eax
add esp, 0x14
test esi, esi
je 0x401c35
push dword [ebp - 0x4a4]
call esi
mov esi, dword [ebp - 0x4b8]
test eax, eax
jne 0x401c3a
mov esi, 1
mov edx, dword [ebp - 0x474]
cmp edx, 8
jb 0x401c7a
mov ecx, dword [ebp - 0x488]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d11
push edx
push ecx
call fcn.00407b35
add esp, 8
mov edx, dword [ebp - 0x45c]
xor eax, eax
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 7
mov word [ebp - 0x488], ax
cmp edx, 8
jb 0x401cd3
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401cc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d16
push edx
push ecx
call fcn.00407b35
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407b24
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
int3