Function at 0x402820
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408cce
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x13c], esi
push 0xb0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x134], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x402895
mov eax, dword [esi]
sub esp, 8
lea ecx, [ebp - 0x110]
push 2
push eax
call fcn.004059f0
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
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
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x114], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc0], 0
je 0x402bf0
mov byte [ebp - 4], 1
call dword [sym.imp.libcrypto_3.dll_EVP_MD_CTX_new]
push 0
mov dword [ebp - 0x12c], eax
call dword [sym.imp.libcrypto_3.dll_EVP_sha256]
push eax
push dword [ebp - 0x12c]
call dword [sym.imp.libcrypto_3.dll_EVP_DigestInit_ex]
mov ecx, dword [edi + 0x10]
add esp, 0xc
cmp dword [edi + 0x14], 0xf
jbe 0x402914
mov edi, dword [edi]
push ecx
push edi
mov edi, dword [ebp - 0x12c]
push edi
call dword [sym.imp.libcrypto_3.dll_EVP_DigestUpdate]
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.libcrypto_3.dll_EVP_DigestFinal_ex]
xor eax, eax
mov dword [ebp - 0x118], 0
xorps xmm0, xmm0
mov dword [ebp - 0x114], 0xf
add esp, 0xc
mov dword [ebp - 0x134], 1
movups xmmword [ebp - 0x128], xmm0
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x60], eax
jbe 0x402a2b
nop dword [eax + eax]
movzx eax, byte [ebp + eax - 0x58]
push eax
lea eax, [ebp - 0x5c]
push str._02x
push eax
call fcn.00401050
lea edi, [ebp - 0x5c]
add esp, 0xc
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4029a0
mov edx, dword [ebp - 0x114]
sub edi, ecx
mov ecx, dword [ebp - 0x118]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x4029ec
lea eax, [ecx + edi]
cmp edx, 0xf
mov dword [ebp - 0x118], eax
lea esi, [ebp - 0x128]
cmova esi, dword [ebp - 0x128]
lea eax, [ebp - 0x5c]
add esi, ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x402a09
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x138], 0
push eax
push dword [ebp - 0x138]
lea ecx, [ebp - 0x128]
push edi
call fcn.00406c60
mov eax, dword [ebp - 0x130]
inc eax
mov dword [ebp - 0x130], eax
cmp eax, dword [ebp - 0x60]
jb 0x402980
mov esi, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x12c]
push edi
call dword [sym.imp.libcrypto_3.dll_EVP_MD_CTX_free]
add esp, 4
lea edx, [ebp - 0x128]
cmp dword [ebp - 0x114], 0xf
lea ecx, [ebp - 0x110]
cmova edx, dword [ebp - 0x128]
push dword [ebp - 0x118]
call fcn.00407180
mov byte [ebp - 4], 0
add esp, 4
mov ecx, dword [ebp - 0x114]
cmp ecx, 0xf
jbe 0x402a9d
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402a93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402a93
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
add esp, 8
lea ecx, [ebp - 0x10c]
call fcn.00406170
test eax, eax
jne 0x402ac4
push eax
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push esi
mov edx, str.file_for_hash
lea ecx, [ebp - 0x128]
call fcn.00406920
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004013c0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x114]
cmp ecx, 0xf
jbe 0x402b23
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402b19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402b19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
add esp, 8
mov ecx, str.gta_sa.exe
call fcn.00402740
test al, al
jne 0x402b63
push str.Gta_sa_is_not_running__closing...
lea ecx, [ebp - 0x128]
call fcn.00405be0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 3
call fcn.004013c0
lea ecx, [ebp - 0x128]
call fcn.00405b90
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40a45c
call fcn.004066d0
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x402b7d
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00407180
add esp, 4
mov ecx, eax
push 0x4068f0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
mov edx, str.hash_written_to_file...
lea ecx, [ebp - 0x128]
call fcn.00406920
add esp, 4
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004013c0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x114]
cmp ecx, 0xf
jbe 0x402c4b
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402c41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402c41
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, 0x40a48c
call fcn.004066d0
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x402c0a
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00407180
add esp, 4
mov ecx, eax
push 0x4068f0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
mov edx, str.Error_open_file
lea ecx, [ebp - 0x128]
call fcn.00406920
add esp, 4
mov byte [ebp - 4], 5
jmp 0x402baf
push ecx
push edx
call fcn.00407bb4
add esp, 8
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
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
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x114], eax
mov dword [ebp - 4], 6
cmp dword [ebp - 0xc0], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x402cbc
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0xd0]
cmp dword [eax], ecx
jne 0x402cbc
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xf0]
mov dword [eax], ecx
mov eax, dword [ebp - 0xe0]
mov dword [eax], edx
cmp byte [ebp - 0xc4], 0
je 0x402cd0
lea ecx, [ebp - 0x10c]
call fcn.00406170
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x108]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407810
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret