Function at 0x402a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418789
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x42029c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x2e
lea eax, [ebp - 0x128]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x128]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402aa6
mov ecx, dword [str.pass.txt]
mov edx, dword [0x41d8bc]
mov dword [eax], ecx
mov cx, word [0x41d8c0]
mov dword [eax + 4], edx
lea edx, [ebp - 0x128]
mov word [eax + 8], cx
push edx
lea eax, [ebp - 0x1f0]
push eax
call fcn.00403510
mov dword [ebp - 4], 0
cmp dword [ebp - 0x198], 0
je 0x402b40
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.00405370
add esp, 4
lea eax, [ebp - 0x1ec]
call fcn.004044e0
test eax, eax
jne 0x402b40
mov edx, dword [ebp - 0x1f0]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1e4]
lea ecx, [ebp + ecx - 0x1f0]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x402b2e
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402b40
push 0
call fcn.004023a0
lea eax, [ebp - 0x128]
push 0x41d8d0
push eax
call fcn.004071e6
add esp, 8
mov esi, eax
jmp 0x402b60
lea ecx, [ebp - 0x13c]
push ecx
push 0x41d8d4
push esi
call fcn.00405eea
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402b60
push esi
call fcn.0040760d
mov eax, dword [ebp - 0x13c]
add esp, 4
test eax, eax
je 0x402b40
mov word [ebp - 0x1e], ax
mov edx, 0x66
mov eax, 0xaaaaaaab
mov word [ebp - 0x20], dx
mul dword [0x421194]
mov ecx, 8
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x130], ecx
mov ecx, 9
mov word [ebp - 0x14], cx
xor ecx, ecx
mov esi, edx
shr esi, 1
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x24], 0x680086
mov dword [ebp - 0x1c], 0x30001
mov dword [ebp - 0x18], 0x70005
mov eax, ecx
je 0x402c0d
cmp cx, 9
jne 0x402bfa
xor ecx, ecx
movzx edx, cx
mov dl, byte [ebp + edx*2 - 0x24]
xor byte [eax + 0x42119c], dl
inc eax
inc ecx
cmp eax, esi
jb 0x402bf2
mov edx, dword [0x421194]
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x140]
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, [ebp - 0x138]
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 0x402c86
call fcn.004016e0
mov edx, dword [ebp - 0x1f0]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x140], ecx
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 4], 1
call fcn.00403620
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x190]
mov dword [ebp + edx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00416464
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040581d
mov esp, ebp
pop ebp
ret