Function at 0x4511e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca7ea
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x658bb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp + 0xc]
lea edi, [ecx + 4]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x14c], ecx
mov byte [ecx], 0
mov ecx, edi
push 0
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x10]
movups xmmword [edi], xmm0
push 0x63f7d5
mov dword [ebp - 0x148], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00462a70
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x130]
add eax, 0x1c
push 0
push 0x63f7d5
mov ecx, eax
mov dword [ebp - 0x144], eax
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00462a70
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov eax, dword [ebp - 0x130]
add eax, 0x34
push 0
push 0x63f7d5
mov ecx, eax
mov dword [ebp - 0x138], eax
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00462a70
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x130]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
lea eax, [esi + 0x10]
mov dword [ebp - 0x13c], eax
cmp edi, esi
je 0x451316
cmp dword [esi + 0x14], 0x10
mov ecx, dword [eax]
mov eax, esi
jb 0x451308
mov eax, dword [esi]
push ecx
push eax
mov ecx, edi
call fcn.004604c0
lea eax, [esi + 0x10]
jmp 0x45131c
mov dword [ebp - 0x13c], eax
cmp dword [esi + 0x14], 0x10
mov ecx, dword [eax]
mov eax, esi
mov dword [ebp - 0x134], esi
jb 0x451334
mov eax, dword [esi]
mov dword [ebp - 0x134], eax
test ecx, ecx
je 0x451357
push ecx
push 0x3a
push eax
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
test eax, eax
je 0x451357
sub eax, dword [ebp - 0x134]
cmp eax, 0xffffffff
jne 0x45153f
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x12c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451390
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00462a70
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x118]
mov eax, edx
mov ecx, dword [ebp - 0x11c]
sub eax, ecx
cmp eax, 1
jb 0x4513e6
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
mov word [eax + ecx], 0x5c
jmp 0x451407
push 1
push 0x63fb3c
mov byte [ebp - 0x134], 0
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x134]
push 1
call fcn.00462910
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [eax]
mov eax, bind
sub eax, edx
cmp eax, ecx
jb 0x4515bd
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
cmp dword [esi + 0x14], 0x10
jb 0x451440
mov esi, dword [esi]
push ecx
push esi
push edx
push eax
push ecx
push dword [ebp - 0x14c]
lea ecx, [ebp - 0x164]
call fcn.00464290
lea eax, [ebp - 0x164]
cmp edi, eax
je 0x4514c9
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x451493
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x451489
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45152f
mov eax, edx
push ecx
push eax
call fcn.005c6577
add esp, 8
movups xmm0, xmmword [ebp - 0x164]
mov dword [edi + 0x10], 0
mov ecx, 0xf
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmmword [edi], xmm0
mov byte [ebp - 0x164], 0
movq xmm0, qword [ebp - 0x154]
movq qword [edi + 0x10], xmm0
jmp 0x4514cf
mov ecx, dword [ebp - 0x150]
cmp ecx, 0x10
jb 0x4514ff
mov edx, dword [ebp - 0x164]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4514f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45152f
push ecx
push edx
call fcn.005c6577
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x45153f
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451535
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x451535
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.005c6577
add esp, 8
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x144]
cmp ecx, eax
je 0x451561
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x45155a
mov eax, dword [eax]
push edx
push eax
call fcn.004604c0
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x138]
cmp ecx, eax
je 0x451583
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x45157c
mov eax, dword [eax]
push edx
push eax
call fcn.004604c0
mov esi, dword [ebp - 0x130]
mov ecx, esi
mov dword [esi + 0x4c], 0x643108
mov dword [esi + 0x50], 0x5000
call fcn.00451770
mov eax, esi
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.005c61f7
mov esp, ebp
pop ebp
ret 0x14
call fcn.00447160
int3