Function at 0x4025a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edx, dword [eax]
mov ebx, dword [eax + 8]
lea ecx, [eax + 0x28]
mov esi, 0x41050c
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 4]
mov dword [ebp - 8], esi
mov esi, dword [eax + 0x14]
mov dword [ebp - 4], esi
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x18], esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x14], esi
add eax, 0x18
mov esi, eax
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
movsd dword es:[edi], dword [esi]
test edx, edx
jne 0x4026ed
inc edx
cmp dword [ebp - 8], edx
jne 0x4026ed
cmp word [ebp - 0x18], 5
jne 0x4026ed
mov esi, dword [ebp - 0x18]
shr esi, 0x10
cmp si, 7
jb 0x4026ed
cmp dword [ebp - 4], edx
jne 0x402685
test ebx, ebx
jne 0x402626
mov esi, 0x41051c
jmp 0x4026e7
cmp ebx, edx
jne 0x402634
mov esi, 0x41052c
jmp 0x4026e7
cmp ebx, 2
jne 0x402643
mov esi, 0x41053c
jmp 0x4026e7
cmp ebx, 3
jne 0x402652
mov esi, 0x41054c
jmp 0x4026e7
cmp ebx, 4
jne 0x402661
mov esi, 0x41055c
jmp 0x4026e7
cmp ebx, 5
jne 0x40266d
mov esi, 0x41056c
jmp 0x4026e7
cmp ebx, 6
jne 0x402679
mov esi, 0x41057c
jmp 0x4026e7
cmp ebx, 7
jne 0x4026ed
mov esi, 0x41058c
jmp 0x4026e7
cmp dword [ebp - 4], 2
jne 0x4026ed
test ebx, ebx
jne 0x402696
mov esi, 0x41059c
jmp 0x4026e7
cmp ebx, edx
jne 0x4026a1
mov esi, 0x4105ac
jmp 0x4026e7
cmp ebx, 2
jne 0x4026ad
mov esi, 0x4105bc
jmp 0x4026e7
cmp ebx, 3
jne 0x4026b9
mov esi, 0x4105cc
jmp 0x4026e7
cmp ebx, 4
jne 0x4026c5
mov esi, 0x4105dc
jmp 0x4026e7
cmp ebx, 5
jne 0x4026d1
mov esi, 0x4105ec
jmp 0x4026e7
cmp ebx, 6
jne 0x4026dd
mov esi, 0x4105fc
jmp 0x4026e7
cmp ebx, 7
jne 0x4026ed
mov esi, 0x41060c
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 0x41050c
push eax
call fcn.00402bfe
add esp, 0xc
test eax, eax
je 0x402759
push 0x10
push 0x41050c
push dword [ebp - 0xc]
call fcn.00402bfe
add esp, 0xc
test eax, eax
je 0x402759
xor edi, edi
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0x10], edi
jne 0x40272e
cmp dword [ebp - 8], 1
jne 0x40272e
mov dword [ebp - 0xc], 0x413214
push 0x1000
call fcn.004041d5
mov esi, dword [ebp + 8]
pop ecx
push eax
push edi
push edi
push 0x8023
push edi
mov dword [esi], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x402760
push dword [esi]
call fcn.00404152
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x413314
push dword [esi]
call edi
push dword [ebp - 0xc]
push dword [esi]
call edi
cmp dword [ebp - 4], 0
jne 0x40278f
push 0x41061c
push dword [esi]
call fcn.004044ca
push 0x41332c
jmp 0x4027bf
cmp dword [ebp - 4], 1
jne 0x4027a8
push 0x41061c
push dword [esi]
call fcn.004044ca
push 0x413338
jmp 0x4027bf
cmp dword [ebp - 4], 3
jne 0x4027c9
push 0x41061c
push dword [esi]
call fcn.004044ca
push 0x413324
push dword [esi]
call fcn.004044ca
add esp, 0x10
push 0x40
call fcn.004041d5
mov edi, eax
xor eax, eax
pop ecx
mov word [edi], ax
test ebx, ebx
je 0x402836
cmp ebx, 1
jne 0x4027e8
push 0x412ee4
jmp 0x40282e
cmp ebx, 2
jne 0x4027f4
push 0x412eec
jmp 0x40282e
cmp ebx, 3
jne 0x402800
push 0x412ef4
jmp 0x40282e
cmp ebx, 4
jne 0x40280c
push 0x412efc
jmp 0x40282e
cmp ebx, 5
jne 0x402818
push 0x412f08
jmp 0x40282e
cmp ebx, 6
jne 0x402824
push 0x412f10
jmp 0x40282e
cmp ebx, 7
jne 0x402836
push 0x412f18
push edi
call fcn.004044ca
pop ecx
pop ecx
push 0xa
lea eax, [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x18]
push eax
call fcn.00404a40
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.004044ca
push 0x40
call fcn.004041d5
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor edx, edx
mov word [eax], dx
push edi
push dword [ecx]
call fcn.004044ca
push 0x410620
push edi
call fcn.004044ca
push 0x10
pop esi
push esi
lea eax, [ebp - 0x28]
push 0x41030c
push eax
call fcn.00402bfe
add esp, 0x34
test eax, eax
jne 0x402894
push 0x413354
jmp 0x4028ed
push esi
lea eax, [ebp - 0x28]
push 0x41031c
push eax
call fcn.00402bfe
add esp, 0xc
test eax, eax
jne 0x4028b1
push 0x41335c
jmp 0x4028ed
push esi
lea eax, [ebp - 0x28]
push 0x41032c
push eax
call fcn.00402bfe
add esp, 0xc
test eax, eax
jne 0x4028ce
push 0x41336c
jmp 0x4028ed
push esi
lea eax, [ebp - 0x28]
push 0x41033c
push eax
call fcn.00402bfe
add esp, 0xc
test eax, eax
jne 0x402759
push 0x413384
push edi
call fcn.004044ca
pop ecx
pop ecx
push 0x40
call fcn.004041d5
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esp], 0x412fcc
push dword [esi]
call fcn.004044ca
push edi
push dword [esi]
call fcn.004044ca
xor eax, eax
add esp, 0x10
inc eax
jmp 0x40275b