Function at 0x46d3d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x24]
mov eax, 0x5a
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
cmp edi, ebx
jne 0x46d3fc
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
push ebp
mov ebp, dword [esp + 0x2c]
push esi
cmp ebp, ebx
je 0x46d6e9
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x46d6e9
push 8
push str.sha256__
push edi
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x46d568
push 0x20
call dword [0x5e1054]
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x46d482
push 0x20
push eax
push esi
push ebp
call fcn.00485570
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d454
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [0x5e1054]
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x46d48f
mov eax, dword [esp + 0x10]
push eax
call dword [0x5e1058]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
push esi
push edi
push ebx
call sub.MSVCR100.dll_memcpy
mov ebp, dword [sym.imp.MSVCR100.dll_strstr]
add esp, 0xc
mov esi, ebx
push str._sha256__
push esi
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x46d4b6
mov byte [edi], 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
add esi, 8
push esi
call fcn.00485960
add esp, 0xc
test eax, eax
jne 0x46d511
mov esi, dword [esp + 0x18]
mov ecx, 0x20
cmp dword [esp + 0x2c], ecx
jne 0x46d4fb
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
cmp ecx, 4
jb 0x46d52f
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x46d4fb
sub ecx, 4
add eax, 4
jmp 0x46d4e7
push esi
call dword [0x5e1058]
mov ebx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x18], 0
test edi, edi
je 0x46d547
push str.sha256__
push edi
mov byte [edi], 0x3b
call ebp
mov esi, eax
add esp, 8
test esi, esi
jne 0x46d4a2
jmp 0x46d547
xor edi, edi
push esi
mov dword [esp + 0x18], edi
call dword [0x5e1058]
mov ebx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
push eax
call dword [0x5e1058]
push ebx
call dword [0x5e1058]
mov eax, dword [esp + 0x1c]
add esp, 8
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret
push 0x57beb4
push edi
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
cmp edi, ebx
jne 0x46d58e
pop esi
pop ebp
pop edi
mov eax, 0x5a
pop ebx
add esp, 0x18
ret
push 2
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fseek]
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x46d6b9
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
mov edi, eax
call ebx
add esp, 0x10
test eax, eax
jne 0x46d6b9
cmp edi, 0x100000
ja 0x46d6b9
mov eax, edi
cdq
push edx
push eax
call fcn.0047c690
add esp, 8
mov dword [esp + 0x2c], eax
cmp esi, eax
ja 0x46d6b9
inc eax
push eax
call dword [0x5e1054]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x46d6bd
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
push edx
push 1
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x46d6bd
mov eax, dword [esp + 0x2c]
cmp esi, eax
jne 0x46d676
mov eax, esi
mov ecx, ebx
mov edi, ebp
cmp esi, 4
jb 0x46d648
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x46d6bd
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x46d630
test eax, eax
je 0x46d66c
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x46d6bd
cmp eax, 1
jbe 0x46d66c
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x46d6bd
cmp eax, 2
jbe 0x46d66c
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x46d6bd
mov dword [esp + 0x14], 0
jmp 0x46d6bd
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [eax + ebx], 0
call fcn.0046d300
add esp, 8
test eax, eax
jne 0x46d6bd
cmp esi, dword [esp + 0x24]
jne 0x46d6bd
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x46d648
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x46d6bd
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x46d6a3
jmp 0x46d648
mov ebx, dword [esp + 0x10]
push ebx
call dword [0x5e1058]
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x5e1058]
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esp + 0x20]
add esp, 0xc
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret