Function at 0x402547
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 0x402694
inc edx
cmp dword [ebp - 8], edx
jne 0x402694
cmp word [ebp - 0x18], 5
jne 0x402694
mov esi, dword [ebp - 0x18]
shr esi, 0x10
cmp si, 7
jb 0x402694
cmp dword [ebp - 4], edx
jne 0x40262c
test ebx, ebx
jne 0x4025cd
mov esi, 0x41051c
jmp 0x40268e
cmp ebx, edx
jne 0x4025db
mov esi, 0x41052c
jmp 0x40268e
cmp ebx, 2
jne 0x4025ea
mov esi, 0x41053c
jmp 0x40268e
cmp ebx, 3
jne 0x4025f9
mov esi, 0x41054c
jmp 0x40268e
cmp ebx, 4
jne 0x402608
mov esi, 0x41055c
jmp 0x40268e
cmp ebx, 5
jne 0x402614
mov esi, 0x41056c
jmp 0x40268e
cmp ebx, 6
jne 0x402620
mov esi, 0x41057c
jmp 0x40268e
cmp ebx, 7
jne 0x402694
mov esi, 0x41058c
jmp 0x40268e
cmp dword [ebp - 4], 2
jne 0x402694
test ebx, ebx
jne 0x40263d
mov esi, 0x41059c
jmp 0x40268e
cmp ebx, edx
jne 0x402648
mov esi, 0x4105ac
jmp 0x40268e
cmp ebx, 2
jne 0x402654
mov esi, 0x4105bc
jmp 0x40268e
cmp ebx, 3
jne 0x402660
mov esi, 0x4105cc
jmp 0x40268e
cmp ebx, 4
jne 0x40266c
mov esi, 0x4105dc
jmp 0x40268e
cmp ebx, 5
jne 0x402678
mov esi, 0x4105ec
jmp 0x40268e
cmp ebx, 6
jne 0x402684
mov esi, 0x4105fc
jmp 0x40268e
cmp ebx, 7
jne 0x402694
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.00402ba5
add esp, 0xc
test eax, eax
je 0x402700
push 0x10
push 0x41050c
push dword [ebp - 0xc]
call fcn.00402ba5
add esp, 0xc
test eax, eax
je 0x402700
xor edi, edi
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0x10], edi
jne 0x4026d5
cmp dword [ebp - 8], 1
jne 0x4026d5
mov dword [ebp - 0xc], 0x413214
push 0x1000
call fcn.0040417c
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 0x402707
push dword [esi]
call fcn.004040f9
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 0x402736
push 0x41061c
push dword [esi]
call fcn.00404471
push 0x41332c
jmp 0x402766
cmp dword [ebp - 4], 1
jne 0x40274f
push 0x41061c
push dword [esi]
call fcn.00404471
push 0x413338
jmp 0x402766
cmp dword [ebp - 4], 3
jne 0x402770
push 0x41061c
push dword [esi]
call fcn.00404471
push 0x413324
push dword [esi]
call fcn.00404471
add esp, 0x10
push 0x40
call fcn.0040417c
mov edi, eax
xor eax, eax
pop ecx
mov word [edi], ax
test ebx, ebx
je 0x4027dd
cmp ebx, 1
jne 0x40278f
push 0x412ee4
jmp 0x4027d5
cmp ebx, 2
jne 0x40279b
push 0x412eec
jmp 0x4027d5
cmp ebx, 3
jne 0x4027a7
push 0x412ef4
jmp 0x4027d5
cmp ebx, 4
jne 0x4027b3
push 0x412efc
jmp 0x4027d5
cmp ebx, 5
jne 0x4027bf
push 0x412f08
jmp 0x4027d5
cmp ebx, 6
jne 0x4027cb
push 0x412f10
jmp 0x4027d5
cmp ebx, 7
jne 0x4027dd
push 0x412f18
push edi
call fcn.00404471
pop ecx
pop ecx
push 0xa
lea eax, [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x18]
push eax
call fcn.004049f0
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.00404471
push 0x40
call fcn.0040417c
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor edx, edx
mov word [eax], dx
push edi
push dword [ecx]
call fcn.00404471
push 0x410620
push edi
call fcn.00404471
push 0x10
pop esi
push esi
lea eax, [ebp - 0x28]
push 0x41030c
push eax
call fcn.00402ba5
add esp, 0x34
test eax, eax
jne 0x40283b
push 0x413354
jmp 0x402894
push esi
lea eax, [ebp - 0x28]
push 0x41031c
push eax
call fcn.00402ba5
add esp, 0xc
test eax, eax
jne 0x402858
push 0x41335c
jmp 0x402894
push esi
lea eax, [ebp - 0x28]
push 0x41032c
push eax
call fcn.00402ba5
add esp, 0xc
test eax, eax
jne 0x402875
push 0x41336c
jmp 0x402894
push esi
lea eax, [ebp - 0x28]
push 0x41033c
push eax
call fcn.00402ba5
add esp, 0xc
test eax, eax
jne 0x402700
push 0x413384
push edi
call fcn.00404471
pop ecx
pop ecx
push 0x40
call fcn.0040417c
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.00404471
push edi
push dword [esi]
call fcn.00404471
xor eax, eax
add esp, 0x10
inc eax
jmp 0x402702