Function at 0x42c350
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 0x42c421
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x2c], 0
sete al
test ebx, ebx
sete cl
mov esi, 0x5a
or cl, al
jne 0x42c423
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 0x42c42d
push str.vtls_vtls.c
push 0x43c
push 0x95546f
push ebp
call fcn.004062d0
add esp, 0x10
test eax, eax
je 0x42c423
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 0x42c499
xor ebp, ebp
push str.vtls_vtls.c
push 0x47b
push ebp
call fcn.00405f90
add esp, 0xc
push str.vtls_vtls.c
push 0x47c
push dword [esp + 0x14]
call fcn.00405f90
add esp, 0xc
mov dword [esp + 0xc], 0
push str.vtls_vtls.c
push 0x47d
push edi
call fcn.00406350
add esp, 0xc
jmp 0x42c423
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 [0x862c94]
cmp dword [eax + 0x58], 0
je 0x42c526
push str.vtls_vtls.c
push 0x405
push 0x20
call fcn.00405bd0
add esp, 0xc
mov esi, 0x1b
test eax, eax
je 0x42c423
mov edi, eax
mov eax, dword [0x862c94]
push 0x20
push edi
push ebx
push dword [esp + 0x38]
call dword [eax + 0x58]
add esp, 0x10
test eax, eax
je 0x42c530
mov esi, eax
push str.vtls_vtls.c
push 0x40f
push edi
call fcn.00405f90
jmp 0x42c41c
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 0x42c3d9
test eax, eax
jne 0x42c3d9
push 0
push ebp
call fcn.00426280
add esp, 8
cmp eax, ebx
jb 0x42c3d9
mov dword [esp + 8], eax
inc eax
push str.vtls_vtls.c
push 0x45a
push eax
call fcn.00405bd0
add esp, 0xc
test eax, eax
je 0x42c3d9
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 0x42c3db
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x42c689
push ebx
push ebp
jmp 0x42c6b8
mov esi, 0x5a
jmp 0x42c423
lea eax, [esp + 4]
mov ecx, esp
push eax
push ecx
push 0x20
push edi
call fcn.00435ed0
add esp, 0x10
mov esi, eax
push str.vtls_vtls.c
push 0x40f
push edi
call fcn.00405f90
add esp, 0xc
test esi, esi
jne 0x42c423
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42c592
test byte [eax + 0x6eb], 0x20
je 0x42c592
mov ecx, dword [eax + 0xd20]
test ecx, ecx
je 0x42c581
cmp dword [ecx + 4], 0
jle 0x42c592
push dword [esp]
push str._public_key_hash:_sha256___s
push eax
call fcn.004439c0
add esp, 0xc
push str.vtls_vtls.c
push 0x417
push ebp
call fcn.00405de0
add esp, 0xc
test eax, eax
je 0x42c669
mov dword [esp + 8], eax
mov ebx, eax
jmp 0x42c5cc
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 0x42c62f
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 0x42c5f9
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 0x42c5b5
jmp 0x42c60d
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 0x42c62f
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 0x42c623
test eax, eax
jne 0x42c5b5
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x42c637
mov esi, 0x5a
mov ebp, dword [esp]
push str.vtls_vtls.c
push 0x437
push ebp
call fcn.00405f90
add esp, 0xc
mov dword [esp], 0
push str.vtls_vtls.c
push 0x438
push dword [esp + 0x10]
call fcn.00405f90
jmp 0x42c41c
push str.vtls_vtls.c
push 0x419
push dword [esp + 8]
call fcn.00405f90
add esp, 0xc
mov esi, 0x1b
jmp 0x42c423
mov byte [ebp + eax], 0
lea eax, [esp + 4]
lea edx, [esp + 0xc]
mov ecx, ebp
push eax
call fcn.0042c6e0
add esp, 4
test eax, eax
jne 0x42c3db
cmp dword [esp + 4], ebx
jne 0x42c3db
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 0x42c3db