Function at 0x40626f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 0xc]
mov ebx, dword [0x42f960]
mov ecx, edx
test edx, edx
jns 0x406291
not edx
mov eax, dword [0x430288]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], 0x430298
sub eax, 0x430298
cmp eax, 0x7ff
ja 0x4062b4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [ebp - 0x38], eax
add ebx, ecx
mov dword [ebp - 0x3c], ebx
jmp 0x4064e6
inc dword [ebp - 0x3c]
cmp dl, 0xfc
jbe 0x4064c4
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + 1]
movsx ebx, al
mov byte [ebp - 0x3d], al
mov eax, dword [ebp - 0x3c]
mov al, byte [eax]
mov dword [ebp - 0x18], ebx
movsx esi, al
mov byte [ebp - 0x2d], al
mov eax, esi
or ah, 0x80
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov eax, ebx
or ah, 0x80
cmp dl, 0xfe
mov dword [ebp - 0x14], eax
jne 0x406444
call fcn.00408334
test eax, eax
jns 0x406325
cmp ax, 0x5a04
je 0x406325
cmp ebx, 0x23
sete al
cmp ebx, 0x2e
sete dl
or eax, edx
movzx eax, al
mov dword [ebp - 0x34], eax
jmp 0x40632c
mov dword [ebp - 0x34], 1
cmp dword [0x42f8dc], 1
sbb edi, edi
mov edx, esi
and edi, 0xfffffffe
add edi, 4
test dl, dl
jns 0x40637e
sub esp, 0xc
mov eax, esi
and eax, 0x40
and esi, 0x3f
push eax
add esi, dword [0x42f960]
push dword [ebp - 0x38]
push esi
push 0x40a3a0
push 0x80000002
call fcn.004061ef
mov eax, dword [ebp - 0x38]
add esp, 0xc
xor edi, edi
cmp byte [eax], 0
jne 0x4063ae
push edx
push edx
push ebx
push eax
call fcn.0040626f
jmp 0x4063ac
cmp byte [ebp - 0x2d], 0x25
jne 0x406395
push eax
push eax
push 0x400
push dword [ebp - 0x38]
call fcn.00408344
jmp 0x4063aa
cmp byte [ebp - 0x2d], 0x24
jne 0x4063ae
push edi
push edi
push 0x400
push dword [ebp - 0x38]
call fcn.00408274
xor edi, edi
pop ebx
pop esi
lea esi, [ebp + edi*4 - 0x20]
jmp 0x40641f
mov eax, dword [sym.imp.SHFOLDER_SHGetFolderPathA]
test eax, eax
je 0x4063df
cmp dword [ebp - 0x34], 0
je 0x4063df
sub esp, 0xc
push dword [ebp - 0x38]
push 0
push 0
push dword [esi - 4]
push dword [0x42f9d8]
call eax
add esp, 0xc
test eax, eax
je 0x406425
lea edx, [ebp - 0x10]
push ecx
push edx
push dword [esi - 4]
push dword [0x42f9d8]
call fcn.00408844
pop edx
test eax, eax
jne 0x406416
push eax
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call fcn.00408824
mov ebx, eax
push eax
push dword [ebp - 0x10]
call fcn.00408954
add esp, 0xc
test ebx, ebx
jne 0x406425
mov eax, dword [ebp - 0x38]
sub esi, 4
mov byte [eax], 0
dec edi
cmp edi, 0xffffffff
jne 0x4063b4
mov edx, dword [ebp - 0x38]
cmp byte [edx], 0
je 0x40648a
cmp byte [ebp - 0x3d], 0x1a
jne 0x40648a
push eax
push eax
push 0x40a3cc
push edx
call fcn.00406134
pop edi
pop eax
jmp 0x40648a
and ebx, 0x7f
and esi, 0x7f
shl ebx, 7
or ebx, esi
cmp dl, 0xfd
jne 0x40649a
cmp ebx, 0x1d
jne 0x40646b
push esi
push esi
push dword [0x42f9d8]
push dword [ebp - 0x38]
call fcn.004061d2
jmp 0x406480
mov eax, ebx
push ecx
shl eax, 0xa
push ecx
add eax, section..ndata
push eax
push dword [ebp - 0x38]
call fcn.004061b8
pop eax
lea eax, [ebx - 0x15]
pop edx
cmp eax, 6
ja 0x4064ad
sub esp, 0xc
push dword [ebp - 0x38]
call fcn.0040607e
add esp, 0xc
jmp 0x4064ad
inc dl
jne 0x4064ad
not ebx
push eax
push eax
push ebx
push dword [ebp - 0x38]
call fcn.0040626f
pop esi
pop edi
sub esp, 0xc
push dword [ebp - 0x38]
add dword [ebp - 0x3c], 2
call fcn.0040613d
add dword [ebp - 0x38], eax
add esp, 0xc
jmp 0x4064e6
mov eax, dword [ebp - 0x38]
lea ecx, [eax + 1]
jne 0x4064de
mov edx, dword [ebp - 0x3c]
mov al, byte [edx]
mov edx, dword [ebp - 0x38]
mov byte [edx], al
mov dword [ebp - 0x38], ecx
inc dword [ebp - 0x3c]
jmp 0x4064e6
mov eax, dword [ebp - 0x38]
mov byte [eax], dl
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x3c]
mov dl, byte [eax]
test dl, dl
je 0x406502
mov eax, dword [ebp - 0x38]
sub eax, 0x430298
cmp eax, 0x3ff
jle 0x4062be
mov edx, dword [ebp - 0x38]
mov eax, 0x430298
mov byte [edx], 0
cmp dword [ebp + 8], 0
je 0x406520
push ebx
push ebx
push eax
push dword [ebp + 8]
call fcn.004061b8
pop edx
pop ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8