Function at 0x4583c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5227d3
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x597f54]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x802d
push 0
call edi
or esi, 0xffffffff
test eax, eax
jl 0x458496
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401534
push eax
mov ecx, 0x59b038
mov dword [esp + 0x130], 0
call fcn.00402e5a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59b038
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458496
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x802e
push 0
call edi
test eax, eax
mov ebx, 1
jl 0x458529
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00401534
push eax
mov ecx, 0x59b040
mov dword [esp + 0x130], ebx
call fcn.00402e5a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4584f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59b040
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x8016
push 0
call edi
test eax, eax
jl 0x4585bc
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00401534
push eax
mov ecx, 0x59b034
mov dword [esp + 0x130], 2
call fcn.00402e5a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458589
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59b034
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4585bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x8017
push 0
call edi
test eax, eax
jl 0x45864f
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00401534
push eax
mov ecx, 0x59b02c
mov dword [esp + 0x130], 3
call fcn.00402e5a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45861c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59b02c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45864f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x8018
push 0
call edi
test eax, eax
jl 0x4586e2
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00401534
push eax
mov ecx, 0x59b030
mov dword [esp + 0x130], 4
call fcn.00402e5a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4586af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59b030
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4586e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x8019
push 0
call edi
test eax, eax
jl 0x458775
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00401534
push eax
mov ecx, 0x59b03c
mov dword [esp + 0x130], 5
call fcn.00402e5a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458742
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59b03c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x801f
push 0
call edi
test eax, eax
jl 0x458808
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00401534
push eax
mov ecx, 0x59b044
mov dword [esp + 0x130], 6
call fcn.00402e5a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4587d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59b044
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458808
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x8023
push 0
call edi
test eax, eax
jl 0x45889a
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00401534
push eax
mov ecx, 0x59b028
mov dword [esp + 0x130], 7
call fcn.00402e5a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458868
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59b028
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.004582d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45889a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 5
push 0
call edi
test eax, eax
jl 0x45890e
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00401534
push eax
mov ecx, 0x59b048
mov dword [esp + 0x130], 8
call fcn.00402e5a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x12c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4588f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [0x593108], 0
je 0x45890e
push ebx
push 0x52f0fc
mov ecx, 0x59b048
call fcn.00402c69
mov byte [0x59b025], bl
mov al, bl
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004e2867
add esp, 0x120
ret