Function at 0x403be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40d5e0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x454]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, 0x200
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x20], 0
cmp ebx, 0x201
jae 0x403c86
jmp 0x403d30
cmp edi, ebx
mov ebx, edi
jb 0x403d84
cmp ebx, 0x201
jb 0x403d30
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, ebx
mov eax, esi
sub edx, ecx
sub eax, ecx
cmp eax, edx
jae 0x403ce0
mov edi, dword [ebp - 0x28]
add edx, ecx
jb 0x403e3c
lea ecx, [esi + esi]
mov eax, 4
cmp ecx, edx
cmova edx, ecx
cmp edx, 4
cmovbe edx, eax
xor eax, eax
add edx, edx
setae al
add eax, eax
test esi, esi
je 0x403ce5
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 2
jmp 0x403cec
mov ecx, dword [ebp - 0x28]
jmp 0x403d13
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x54]
lea edi, [ebp - 0x48]
push edi
push eax
call fcn.00402d40
add esp, 8
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x54], 1
je 0x403e54
shr eax, 1
mov dword [ebp - 0x24], ecx
mov esi, eax
mov dword [ebp - 0x2c], esi
mov esi, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], ecx
jmp 0x403d3d
mov dword [ebp - 0x3c], 0x200
lea esi, [ebp - 0x454]
push 0
call sub.kernel32.dll_SetLastError
push esi
push ebx
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x403d5e
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x403de0
cmp edi, ebx
jne 0x403c70
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x403c70
add ebx, ebx
cmp ebx, 0x201
jae 0x403c86
jmp 0x403d30
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jb 0x403e81
push edi
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.0040b620
add esp, 0xc
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
movsd qword [ebp - 0x54], xmm0
mov dword [esi + 0xc], eax
movsd qword [esi + 4], xmm0
mov dword [esi], 0
test edi, edi
jne 0x403e0e
jmp 0x403e26
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
call sub.kernel32.dll_GetLastError
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 1
test edi, edi
je 0x403e26
cmp dword [ebp - 0x28], 0
je 0x403e26
add edi, edi
je 0x403e26
push 2
push edi
push dword [ebp - 0x28]
call fcn.00459be0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x448
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
jmp 0x403e67
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], esi
jne 0x403e75
mov dword [ebp - 0x10], 0
call fcn.00416da0
ud2
push eax
push ecx
call fcn.00416b80
add esp, 8
ud2
push 0x4625ec
push eax
push edi
call fcn.00413b50
add esp, 0xc
jmp 0x403e73