Function at 0x42d960
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xc], 0
test ebp, ebp
je 0x42da31
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x2c], 0
sete al
test ebx, ebx
sete cl
mov esi, 0x5a
or cl, al
jne 0x42da33
push 8
push str.sha256__
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x42da3d
push str.vtls_vtls.c
push 0x43c
push 0x997acf
push ebp
call fcn.004078e0
add esp, 0x10
test eax, eax
je 0x42da33
mov edi, eax
push 2
push 0
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
mov esi, 0x5a
test eax, eax
je 0x42daa9
xor ebp, ebp
push str.vtls_vtls.c
push 0x47b
push ebp
call fcn.004075a0
add esp, 0xc
push str.vtls_vtls.c
push 0x47c
push dword [esp + 0x14]
call fcn.004075a0
add esp, 0xc
mov dword [esp + 0xc], 0
push str.vtls_vtls.c
push 0x47d
push edi
call fcn.00407960
add esp, 0xc
jmp 0x42da33
xor esi, esi
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [0x8bee34]
cmp dword [eax + 0x58], 0
je 0x42db36
push str.vtls_vtls.c
push 0x405
push 0x20
call fcn.004071e0
add esp, 0xc
mov esi, 0x1b
test eax, eax
je 0x42da33
mov edi, eax
mov eax, dword [0x8bee34]
push 0x20
push edi
push ebx
push dword [esp + 0x38]
call dword [eax + 0x58]
add esp, 0x10
test eax, eax
je 0x42db40
mov esi, eax
push str.vtls_vtls.c
push 0x40f
push edi
call fcn.004075a0
jmp 0x42da2c
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
add esp, 4
mov ebp, eax
push 0
push 0
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
cmp ebp, 0x100000
ja 0x42d9e9
test eax, eax
jne 0x42d9e9
push 0
push ebp
call fcn.00427890
add esp, 8
cmp eax, ebx
jb 0x42d9e9
mov dword [esp + 8], eax
inc eax
push str.vtls_vtls.c
push 0x45a
push eax
call fcn.004071e0
add esp, 0xc
test eax, eax
je 0x42d9e9
mov ebp, eax
push edi
push 1
push dword [esp + 0x10]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x42d9eb
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x42dc99
push ebx
push ebp
jmp 0x42dcc8
mov esi, 0x5a
jmp 0x42da33
lea eax, [esp + 4]
mov ecx, esp
push eax
push ecx
push 0x20
push edi
call fcn.004374e0
add esp, 0x10
mov esi, eax
push str.vtls_vtls.c
push 0x40f
push edi
call fcn.004075a0
add esp, 0xc
test esi, esi
jne 0x42da33
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42dba2
test byte [eax + 0x6eb], 0x20
je 0x42dba2
mov ecx, dword [eax + 0xd20]
test ecx, ecx
je 0x42db91
cmp dword [ecx + 4], 0
jle 0x42dba2
push dword [esp]
push str._public_key_hash:_sha256___s
push eax
call fcn.00444fd0
add esp, 0xc
push str.vtls_vtls.c
push 0x417
push ebp
call fcn.004073f0
add esp, 0xc
test eax, eax
je 0x42dc79
mov dword [esp + 8], eax
mov ebx, eax
jmp 0x42dbdc
mov byte [esi], 0x3b
push str.sha256__
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
add esp, 8
mov ebx, eax
test eax, eax
je 0x42dc3f
push str._sha256__
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_strstr
add esp, 8
mov esi, eax
test eax, eax
je 0x42dc09
mov byte [esi], 0
mov edi, dword [esp + 4]
add ebx, 8
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp edi, eax
jne 0x42dbc5
jmp 0x42dc1d
mov edi, dword [esp + 4]
add ebx, 8
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp edi, eax
jne 0x42dc3f
mov ebp, dword [esp]
push edi
push ebx
push ebp
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test esi, esi
je 0x42dc33
test eax, eax
jne 0x42dbc5
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x42dc47
mov esi, 0x5a
mov ebp, dword [esp]
push str.vtls_vtls.c
push 0x437
push ebp
call fcn.004075a0
add esp, 0xc
mov dword [esp], 0
push str.vtls_vtls.c
push 0x438
push dword [esp + 0x10]
call fcn.004075a0
jmp 0x42da2c
push str.vtls_vtls.c
push 0x419
push dword [esp + 8]
call fcn.004075a0
add esp, 0xc
mov esi, 0x1b
jmp 0x42da33
mov byte [ebp + eax], 0
lea eax, [esp + 4]
lea edx, [esp + 0xc]
mov ecx, ebp
push eax
call fcn.0042dcf0
add esp, 4
test eax, eax
jne 0x42d9eb
cmp dword [esp + 4], ebx
jne 0x42d9eb
push ebx
push dword [esp + 0x10]
push dword [esp + 0x34]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x42d9eb