Function at 0x4022e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4167f9
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x41d29c]
xor eax, esp
mov dword [esp + 0x1e0], eax
push esi
mov eax, dword [0x41d29c]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
push 0
push 0x2e
lea eax, [esp + 0xec]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0xe4]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402340
mov ecx, dword [str.pass.txt]
mov edx, dword [0x41a08c]
mov dword [eax], ecx
mov cx, word [0x41a090]
mov dword [eax + 4], edx
lea edx, [esp + 0xe4]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00402a60
mov dword [esp + 0x1f8], 0
cmp dword [esp + 0x6c], 0
je 0x4023d0
lea ecx, [esp + 0x14]
push ecx
call fcn.00404470
add esp, 4
lea eax, [esp + 0x18]
call fcn.00403970
test eax, eax
jne 0x4023d0
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x20]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4023bd
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4023d0
push 0
call fcn.00402070
nop
lea eax, [esp + 0xe4]
push 0x41a0a0
push eax
call fcn.00405ee6
add esp, 8
mov esi, eax
jmp 0x4023f0
lea ecx, [esp + 8]
push ecx
push 0x41a0a4
push esi
call fcn.00404fea
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4023f0
push esi
call fcn.0040630d
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x4023d0
mov word [esp + 0xd6], ax
mov edx, 0x66
mov eax, 0xaaaaaaab
mov word [esp + 0xd4], dx
mul dword [0x41e194]
mov ecx, 8
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc8], ecx
mov ecx, 9
mov word [esp + 0xe0], cx
xor ecx, ecx
mov esi, edx
shr esi, 1
mov dword [esp + 0xc4], 1
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0x680086
mov dword [esp + 0xd8], 0x30001
mov dword [esp + 0xdc], 0x70005
mov eax, ecx
je 0x4024be
lea ebx, [ebx]
cmp cx, 9
jne 0x4024a8
xor ecx, ecx
movzx edx, cx
mov dl, byte [esp + edx*2 + 0xd0]
xor byte [eax + 0x41e19c], dl
inc eax
inc ecx
cmp eax, esi
jb 0x4024a0
mov edx, dword [0x41e194]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x41e19c
call fcn.00401770
mov eax, dword [0x41e198]
mov ecx, dword [0x41e194]
push eax
push ecx
push 0x41e19c
call fcn.00401a40
mov eax, dword [0x41e194]
add esp, 0x1c
lea edx, [esp + 0xc0]
push edx
neg eax
push eax
mov esi, 0x41e19c
call fcn.00401850
add esp, 8
nop
nop
nop
nop
nop
nop
nop
push esi
call fcn.00401450
mov esi, eax
add esp, 4
mov ecx, esi
call fcn.00401600
call eax
test esi, esi
je 0x402534
call fcn.004016e0
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x74]
mov dword [esp + 0xc], ecx
mov dword [esp + eax + 0x14], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1f8], 1
call fcn.00402b70
mov dword [esp + 0x1f8], 0xffffffff
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x74]
mov dword [esp + edx + 0x14], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.00414534
add esp, 4
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.0040491d
mov esp, ebp
pop ebp
ret