Function at 0x40e830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5990f6
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0056f980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e89d
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040fb50
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e8c2
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040fb50
push 0
mov ecx, esi
call fcn.0040fc30
push 1
mov ecx, esi
call fcn.0040fc30
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
test edi, edi
je 0x40e937
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e900
sub ecx, edx
sar ecx, 1
je 0x40e937
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e916
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.00411630
jmp 0x40ebaa
mov eax, dword [0x61b9b8]
test eax, eax
jne 0x40e96f
push 0x11c
call fcn.0045ec32
add esp, 4
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40e964
mov ecx, eax
call fcn.00442a30
jmp 0x40e966
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x61b9b8], eax
push 0x5a178c
push 0x5a1848
push str.MainSetting
lea ecx, [ebp - 0x248]
push ecx
mov ecx, eax
call fcn.00413e90
mov esi, dword [ebp - 0x238]
mov byte [ebp - 4], 2
test esi, esi
je 0x40eac8
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov ecx, dword [ebp - 0x248]
cmovae eax, ecx
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x248]
cmovae eax, ecx
lea eax, [eax + esi*2]
lea esi, [ebp - 0x248]
cmovae esi, ecx
mov ecx, eax
sub ecx, esi
xor edx, edx
inc ecx
xor edi, edi
shr ecx, 1
cmp esi, eax
cmova ecx, edx
mov dword [ebp - 0x284], ecx
test ecx, ecx
je 0x40ea13
sub dword [ebp - 0x27c], esi
nop
movzx eax, word [esi]
push eax
call fcn.00572fab
mov ecx, dword [ebp - 0x27c]
lea esi, [esi + 2]
inc edi
add esp, 4
mov word [ecx + esi - 2], ax
cmp edi, dword [ebp - 0x284]
jne 0x40e9f0
push 3
xor eax, eax
mov dword [ebp - 0x250], 0
push 0x5a1874
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00411630
cmp dword [ebp - 0x24c], 8
lea edi, [ebp - 0x260]
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x248]
cmovae edi, dword [ebp - 0x260]
cmp dword [ebp - 0x234], 8
mov esi, dword [ebp - 0x250]
cmovae ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 3
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x288], ecx
cmp esi, eax
ja 0x40eabd
test esi, esi
jne 0x40ea95
xor eax, eax
jmp 0x40eb2a
sub eax, esi
inc eax
lea edx, [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x284], edx
mov ecx, edx
sub ecx, eax
sar ecx, 1
je 0x40eabd
movzx edx, word [edi]
nop
cmp word [eax], dx
je 0x40eaf0
add eax, 2
sub ecx, 1
jne 0x40eab0
lea ecx, [ebp - 0x260]
call fcn.0040a530
lea ecx, [ebp - 0x248]
call fcn.0040a530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ef18
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x40eabd
mov edx, edi
test esi, esi
je 0x40eb17
mov edi, eax
sub edi, dword [ebp - 0x27c]
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x40ec0e
add edx, 2
sub esi, 1
jne 0x40eb02
sub eax, dword [ebp - 0x288]
sar eax, 1
cmp eax, 0xffffffff
je 0x40eabd
mov esi, dword [ebp - 0x250]
lea ecx, [ebp - 0x27d]
add eax, esi
push ecx
push 4
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x278]
call fcn.0040cfc0
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x40eb85
mov ecx, eax
call fcn.004113b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x220], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x278]
call fcn.0040a530
lea ecx, [ebp - 0x260]
call fcn.0040a530
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.0040a530
cmp dword [ebp - 0x220], 0
je 0x40ebd6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [section..data]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040fd10
add esp, 8
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40ead3
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec37
jmp 0x40ec28
mov edi, dword [ebp - 0x27c]
add eax, 2
mov esi, dword [ebp - 0x250]
mov edx, dword [ebp - 0x284]
jmp 0x40eaa3
push edx
push ecx
call fcn.0045ec62
add esp, 8
jmp 0x40ead3
call fcn.00572b79
int3