Function at 0x456000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6148
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push 0x208
movlpd qword [ebp - 0x18], xmm0
call fcn.00489b1d
mov dword [ebp - 0x4c], eax
push 0x10
mov dword [ebp - 4], 0
call fcn.00489209
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x4c]
push 2
movups xmmword [esi], xmm0
push 0
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.._AV___Ref_count__S_std__.0
mov dword [esi + 0xc], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
call fcn.00489239
add esp, 0x10
mov dword [ebp - 4], 1
push dword [ebp - 0x4c]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x456263
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x4c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4560d0
sub ecx, dword [ebp - 0x4c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.00421ee0
mov byte [ebp - 4], 6
push 0x20
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.00489209
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x6c]
call fcn.0045aea0
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0045b0f0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.0044ffd0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.0044fdd0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4561a2
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x456198
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4562d8
push edx
push ecx
call fcn.00489239
add esp, 8
lea eax, [ebp - 0x54]
cmp edi, eax
je 0x4561d2
mov edx, dword [edi]
call fcn.00403b50
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [edi]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov dword [edi + 4], eax
mov dword [ebp - 0x50], 0
jmp 0x4561d5
mov edx, dword [ebp - 0x54]
call fcn.00403b50
push 0x20
push dword [ebp - 0x54]
call fcn.00489239
mov edx, dword [ebp - 0x58]
add esp, 8
cmp edx, 8
jb 0x456221
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456217
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4562d8
push edx
push ecx
call fcn.00489239
add esp, 8
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x456246
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x456246
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.0045e990
push eax
mov edx, str.Failed_to_get_current_working_directory__
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.0041b7d0
push 0x4c58a8
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0041b8d0
mov esi, eax
push str.::getWorkingDirectory__
mov edx, 0x4dadd8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.00405f30
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 5
call fcn.0040bf40
push 0x4d8ba4
lea eax, [ebp - 0xd8]
push eax
call fcn.0048ab6b
call fcn.0048dc6b
int3