Function at 0x402930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4171e9
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x41f29c]
xor eax, esp
mov dword [esp + 0x1e0], eax
push esi
mov eax, dword [0x41f29c]
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 0x402990
mov ecx, dword [str.pass.txt]
mov edx, dword [0x41c800]
mov dword [eax], ecx
mov cx, word [0x41c804]
mov dword [eax + 4], edx
lea edx, [esp + 0xe4]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00403180
mov dword [esp + 0x1f8], 0
cmp dword [esp + 0x6c], 0
je 0x402a20
lea ecx, [esp + 0x14]
push ecx
call fcn.00404f80
add esp, 4
lea eax, [esp + 0x18]
call fcn.00404120
test eax, eax
jne 0x402a20
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 0x402a0d
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402a20
push 0
call fcn.00402380
nop
lea eax, [esp + 0xe4]
push 0x41c814
push eax
call fcn.00406bc4
add esp, 8
mov esi, eax
jmp 0x402a40
lea ecx, [esp + 8]
push ecx
push 0x41c818
push esi
call fcn.00405afa
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402a40
push esi
call fcn.00406feb
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x402a20
mov word [esp + 0xd6], ax
mov edx, 0x66
mov eax, 0xaaaaaaab
mov word [esp + 0xd4], dx
mul dword [0x420194]
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 0x402b0e
lea ebx, [ebx]
cmp cx, 9
jne 0x402af8
xor ecx, ecx
movzx edx, cx
mov dl, byte [esp + edx*2 + 0xd0]
xor byte [eax + 0x42019c], dl
inc eax
inc ecx
cmp eax, esi
jb 0x402af0
mov edx, dword [0x420194]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x42019c
call fcn.00401b30
mov eax, dword [0x420198]
mov ecx, dword [0x420194]
push eax
push ecx
push 0x42019c
call fcn.00402870
mov eax, dword [0x420194]
add esp, 0x1c
lea edx, [esp + 0xc0]
push edx
neg eax
push eax
mov esi, 0x42019c
call fcn.00401c10
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 0x402b84
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.00403290
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.00414ec4
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.0040542d
mov esp, ebp
pop ebp
ret