Function at 0x4e4fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5932b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
call fcn.005096c0
push 0
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.005099a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x4e5003
lea eax, [ebp - 0x40]
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bfb0
mov byte [ebp - 4], 1
push 0xc
push str.license.dat
lea ecx, [ebp - 0x10]
call fcn.00406040
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
jne 0x4e5052
push 0x84
call fcn.0055549a
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4e504a
mov ecx, eax
call fcn.0040c700
jmp 0x4e504c
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
push edx
call fcn.0040fab0
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
call fcn.004060f0
xor ecx, ecx
add esp, 4
test eax, eax
setns cl
test ecx, ecx
jne 0x4e5093
push eax
call fcn.00401150
mov eax, dword [edi]
mov ecx, dword [eax + 0x50]
cmp dword [ecx - 0xc], 0
jne 0x4e50b7
lea edx, [ebp - 0x18]
lea ecx, [eax + 0x50]
push edx
call fcn.00407d40
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
push eax
call fcn.0040fa10
jmp 0x4e5109
lea ecx, [ebp - 0x18]
push ecx
add eax, 0x50
push eax
call fcn.00402d50
add esp, 8
test al, al
je 0x4e5109
mov ecx, dword [edi]
test ecx, ecx
je 0x4e50da
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
push 0x84
mov dword [edi], 0
call fcn.0055549a
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4e5101
mov ecx, eax
call fcn.0040c700
jmp 0x4e5103
xor eax, eax
mov byte [ebp - 4], 4
mov dword [edi], eax
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
push ebx
push esi
mov ecx, 0x5f5774
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebx, 0x104
sub eax, ebx
or eax, ecx
jge 0x4e5147
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403ca0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 8], ebx
jge 0x4e5156
push 0x80070057
call fcn.00401150
xor ecx, ecx
push esi
push ecx
push ecx
push 0x1c
mov dword [esi - 0xc], ebx
push ecx
mov word [esi + 0x208], cx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4e51a1
cmp eax, 1
je 0x4e51a1
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e5180
sub eax, edx
sar eax, 1
js 0x4e514c
cmp eax, dword [esi - 8]
jg 0x4e514c
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
jmp 0x4e51d6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e51a6
sub eax, edx
sar eax, 1
js 0x4e514c
cmp eax, dword [esi - 8]
jg 0x4e514c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00408040
push eax
lea ecx, [ebp - 0x14]
call fcn.00407d40
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
mov dword [ebp - 0x20], esi
call fcn.004021d0
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
push 0x12
push str.MicrosoftWindows
lea ecx, [ebp + 8]
call fcn.00406040
push 0x3f
push str.UsrClass.dat617CE2B4_DEE2_409E_8085_BF0AEDCE570F.TMContainer
lea ecx, [ebp + 8]
call fcn.00406040
lea ecx, [ebp - 0xc8]
call fcn.00409ef0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xc8]
call fcn.0040fab0
mov esi, dword [edi]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [esi + 4]
call fcn.00401310
test al, al
je 0x4e527e
test esi, esi
je 0x4e524f
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
push 0x84
mov dword [edi], 0
call fcn.0055549a
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4e5276
mov ecx, eax
call fcn.0040c700
jmp 0x4e5278
xor eax, eax
mov byte [ebp - 4], 0xa
mov dword [edi], eax
mov edx, dword [edi]
add edx, 4
mov ebx, 0x5b17a4
mov ecx, 3
lea eax, [edx + 0xc]
sub ebx, edx
mov edx, dword [eax]
mov esi, dword [ebx + eax]
cmp edx, esi
jb 0x4e52ed
ja 0x4e52ed
sub eax, 4
dec ecx
jns 0x4e5292
mov ecx, dword [edi]
lea ecx, [ecx + 4]
call fcn.004081e0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc4], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0xc0], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xbc], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb8], edx
call fcn.0040fa10
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
push edx
call fcn.0040fa10
mov ecx, dword [edi]
mov eax, dword [ecx + 0x18]
or eax, dword [ecx + 0x1c]
jne 0x4e5313
push eax
call fcn.00555593
mov ecx, dword [edi]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add esp, 4
push eax
call fcn.0040fa10
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004021d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1c], eax
mov bl, 0xd
mov byte [ebp - 4], bl
push 0x29
push str.3883170B_3F35_4EA0_B02E_71898AC21CDB.INI
lea ecx, [ebp - 0x1c]
call fcn.00406040
lea ecx, [ebp - 0x80]
call fcn.004099b0
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x1c]
push esi
lea ecx, [ebp - 0x80]
call fcn.0040fab0
test al, al
je 0x4e5378
mov eax, dword [edi]
mov ecx, dword [ebp - 0x7c]
cmp dword [eax + 0x18], ecx
jne 0x4e5367
mov edx, dword [eax + 0x1c]
cmp edx, dword [ebp - 0x78]
je 0x4e538f
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
push edx
jmp 0x4e538a
mov edi, dword [edi]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x7c], eax
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x78], ecx
push esi
lea ecx, [ebp - 0x80]
call fcn.0040fa10
mov al, 0xf
mov byte [ebp - 4], al
lea edx, [ebp - 0x70]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], al
mov ecx, edx
call fcn.004058c0
mov byte [ebp - 4], bl
mov edi, vtable.SecC::CSerialObject.0
mov dword [ebp - 0x80], edi
mov byte [ebp - 4], 0xa
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
pop ebx
test edx, edx
jg 0x4e53d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 0x13
mov byte [ebp - 4], al
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], al
call fcn.004058c0
mov byte [ebp - 4], 9
mov dword [ebp - 0xc8], edi
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x4e5415
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e5435
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e5458
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e547b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
jb 0x4e5494
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00553d26
add esp, 4
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], dx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4