Function at 0x402a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x418c79
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x42029c]
xor eax, esp
mov dword [esp + 0x1e0], eax
push esi
mov eax, dword [0x42029c]
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 0x402ac0
mov ecx, dword [str.pass.txt]
mov edx, dword [0x41d8fc]
mov dword [eax], ecx
mov cx, word [0x41d900]
mov dword [eax + 4], edx
lea edx, [esp + 0xe4]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004037a0
mov dword [esp + 0x1f8], 0
cmp dword [esp + 0x6c], 0
je 0x402b50
lea ecx, [esp + 0x14]
push ecx
call fcn.00405860
add esp, 4
lea eax, [esp + 0x18]
call fcn.00404820
test eax, eax
jne 0x402b50
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 0x402b3d
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402b50
push 0
call fcn.00402370
nop
lea eax, [esp + 0xe4]
push 0x41d910
push eax
call fcn.004076d6
add esp, 8
mov esi, eax
jmp 0x402b70
lea ecx, [esp + 8]
push ecx
push 0x41d914
push esi
call fcn.004063da
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402b70
push esi
call fcn.00407afd
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x402b50
mov word [esp + 0xd6], ax
mov edx, 0x66
mov eax, 0xaaaaaaab
mov word [esp + 0xd4], dx
mul dword [0x421194]
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 0x402c3e
lea ebx, [ebx]
cmp cx, 9
jne 0x402c28
xor ecx, ecx
movzx edx, cx
mov dl, byte [esp + edx*2 + 0xd0]
xor byte [eax + 0x42119c], dl
inc eax
inc ecx
cmp eax, esi
jb 0x402c20
mov edx, dword [0x421194]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x42119c
call fcn.00401b50
mov eax, dword [0x421198]
mov ecx, dword [0x421194]
push eax
push ecx
push 0x42119c
call fcn.004029a0
mov eax, dword [0x421194]
add esp, 0x1c
lea edx, [esp + 0xc0]
push edx
neg eax
push eax
mov esi, 0x42119c
call fcn.00401c30
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 0x402cb4
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.004038b0
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.00416954
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.00405d0d
mov esp, ebp
pop ebp
ret