Function at 0x405310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe84
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x510]
mov dword [ebp - 0xe84], ecx
push 0
push eax
call fcn.0046ea70
add esp, 0xc
lea eax, [ebp - 0x618]
push 0x104
push 0
push eax
call fcn.0046ea70
add esp, 0xc
lea eax, [ebp - 0x510]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x510]
push eax
lea eax, [ebp - 0x618]
push str.._c:
push eax
call fcn.00403ce0
add esp, 0xc
lea eax, [ebp - 0x618]
push 0
push 0
push 3
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xe80], eax
cmp eax, 0xffffffff
jne 0x4053c0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ecx, [ebp - 0xe7c]
push 0
push ecx
push 0x20
lea ecx, [ebp - 0xe78]
mov dword [ebp - 0xe7c], 0
push ecx
push 0
push 0
xorps xmm0, xmm0
xor bl, bl
push 0x560000
push eax
movups xmmword [ebp - 0xe78], xmm0
movups xmmword [ebp - 0xe68], xmm0
call esi
test eax, eax
jne 0x40540c
mov bl, 1
jmp 0x405718
push 0
lea eax, [ebp - 0xe7c]
xorps xmm0, xmm0
push eax
push 0x18
lea eax, [ebp - 0xe54]
movq qword [ebp - 0xe44], xmm0
push eax
push 0
push 0
push 0x74080
push dword [ebp - 0xe80]
movups xmmword [ebp - 0xe54], xmm0
call esi
test eax, eax
jne 0x40544c
mov bl, 2
jmp 0x405718
mov cl, byte [ebp - 0xe70]
xorps xmm0, xmm0
mov al, cl
mov dword [ebp - 0xe3c], 0x200
and al, 1
mov dword [ebp - 0xe38], 0x10100
or al, 0xfa
mov byte [ebp - 0xe34], 0
shl al, 4
mov byte [ebp - 0xe33], al
mov al, byte [ebp - 0xe51]
shr al, cl
and al, 0x10
mov byte [ebp - 0xe31], 0
neg al
mov byte [ebp - 0xe30], cl
push 0x211
sbb al, al
mov dword [ebp - 0xe1f], 0
and al, 0xb5
add al, 0xec
mov byte [ebp - 0xe32], al
movups xmmword [ebp - 0xe2f], xmm0
call fcn.00476593
add esp, 4
mov edi, eax
push 0x211
push 0
push edi
call fcn.0046ea70
add esp, 0xc
lea eax, [ebp - 0xe7c]
push 0
push eax
push 0x211
push edi
push 0x21
lea eax, [ebp - 0xe3c]
push eax
push 0x7c088
push dword [ebp - 0xe80]
call esi
test eax, eax
jne 0x405504
mov bl, 3
jmp 0x40570b
xor ecx, ecx
lea edx, [edi + 0x10]
nop dword [eax]
movzx eax, word [edx]
lea edx, [edx + 2]
mov dword [ebp + ecx*4 - 0xe18], eax
inc ecx
cmp ecx, 0x100
jl 0x405510
mov ecx, dword [ebp - 0xdf0]
mov esi, 0x13
mov eax, ecx
mov byte [ebp - 0x407], cl
mov ecx, dword [ebp - 0xdec]
shr eax, 8
mov byte [ebp - 0x408], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x406], al
mov byte [ebp - 0x405], cl
mov ecx, dword [ebp - 0xde8]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x404], al
mov byte [ebp - 0x403], cl
mov ecx, dword [ebp - 0xde4]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x402], al
mov byte [ebp - 0x401], cl
mov ecx, dword [ebp - 0xde0]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x400], al
mov byte [ebp - 0x3ff], cl
mov ecx, dword [ebp - 0xddc]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x3fe], al
mov byte [ebp - 0x3fd], cl
mov ecx, dword [ebp - 0xdd8]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x3fc], al
mov byte [ebp - 0x3fb], cl
mov ecx, dword [ebp - 0xdd4]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x3fa], al
mov byte [ebp - 0x3f9], cl
mov ecx, dword [ebp - 0xdd0]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x3f8], al
mov byte [ebp - 0x3f7], cl
mov ecx, dword [ebp - 0xdcc]
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x3f6], al
mov byte [ebp - 0x3f5], cl
mov byte [ebp - 0x3f4], 0
nop dword [eax + eax]
movsx eax, byte [ebp + esi - 0x408]
push eax
call fcn.004768f3
add esp, 4
test eax, eax
je 0x405642
mov byte [ebp + esi - 0x408], 0
dec esi
test esi, esi
jg 0x405620
xor ecx, ecx
mov edx, 0x1b
nop dword [eax]
mov eax, dword [ebp + edx*4 - 0xe18]
lea ecx, [ecx + 2]
shr eax, 8
mov byte [ebp + ecx - 0xa1a], al
mov al, byte [ebp + edx*4 - 0xe18]
inc edx
mov byte [ebp + ecx - 0xa19], al
cmp edx, 0x2e
jle 0x405650
lea esi, [ecx - 1]
mov byte [ebp + ecx - 0xa18], 0
test esi, esi
jle 0x4056b2
nop word [eax + eax]
movsx eax, byte [ebp + esi - 0xa18]
push eax
call fcn.004768f3
add esp, 4
test eax, eax
je 0x4056b2
mov byte [ebp + esi - 0xa18], 0
dec esi
test esi, esi
jg 0x405690
lea ecx, [ebp - 0xa18]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4056c0
mov esi, dword [ebp - 0xe84]
sub ecx, edx
push ecx
lea edx, [ebp - 0xa18]
lea ecx, [esi + 0x18]
call fcn.00406540
lea edx, [ebp - 0x408]
add esp, 4
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4056f0
sub edx, ecx
lea ecx, [esi + 0x18]
push edx
lea edx, [ebp - 0x408]
call fcn.00406540
add esp, 4
test edi, edi
je 0x405718
push edi
call fcn.00471958
add esp, 4
push dword [ebp - 0xe80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046be2f
mov esp, ebp
pop ebp
ret