Function at 0x40bd20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e48bd
mov eax, dword fs:[0]
push eax
sub esp, 0x61c
mov eax, dword [0x7cf070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x619], dl
mov edi, ecx
mov dword [ebp - 0x620], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x628], edi
mov dword [ebp - 0x624], 0
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x40bd88
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x620], esi
mov dword [ebp - 4], 1
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x40bdb2
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi - 8]
mov ebx, 1
mov ecx, ebx
mov dword [ebp - 0x624], 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40bdf2
push 0x104
lea ecx, [ebp - 0x620]
call fcn.004027a0
mov esi, dword [ebp - 0x620]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40be25
cmp eax, 0x104
je 0x40be25
push dword [esi - 8]
push esi
call fcn.005f57a6
add esp, 8
test eax, eax
jns 0x40be27
push 0x80070057
call fcn.00402890
xor eax, eax
cmp eax, dword [esi - 8]
jg 0x40be1b
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.005f4234
lea ecx, [ebp - 0x218]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be60
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x620]
call fcn.00404fa0
mov ecx, str.KSVdddddkov3:HUcmw.__BL_acjmoww___5_GV
call fcn.0045f920
mov edx, eax
test edx, edx
jne 0x40be96
xor ecx, ecx
jmp 0x40beaf
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bea0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x620]
call fcn.004071f0
cmp byte [ebp - 0x619], 0
je 0x40bf10
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bed0
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404fa0
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bef4
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
jmp 0x40bfb7
mov eax, dword [edi]
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ebx
jge 0x40bf2d
push 0x104
mov ecx, edi
call fcn.004027a0
push dword [edi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40bf63
cmp eax, 0x104
jae 0x40bf63
mov eax, dword [edi]
test eax, eax
je 0x40bf63
push dword [eax - 8]
push eax
call fcn.005f57a6
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40be1b
jmp 0x40bf65
xor ecx, ecx
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x40be1b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
push 0x5c
mov word [eax + ecx*2], dx
mov ecx, edi
call fcn.0040ccc0
push 0x2f
mov ecx, edi
call fcn.0040ccc0
mov ecx, str.JNPUUUUUW_agjjpw_0__LLLLM__dmu._LW
call fcn.0045f920
mov edx, eax
test edx, edx
jne 0x40bfa1
xor ecx, ecx
jmp 0x40bfb5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bfa6
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004071f0
mov esi, dword [ebp - 0x620]
mov ecx, edi
push dword [esi - 0xc]
push esi
call fcn.004071f0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bfeb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e9199
mov esp, ebp
pop ebp
ret