Function at 0x404440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x5a
cmp ebx, eax
jne 0x404462
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, eax
je 0x40475a
mov esi, dword [ebp + 0x14]
cmp esi, eax
je 0x40475a
push 8
push str.sha256__
push ebx
call fcn.004ac7b0
add esp, 0xc
test eax, eax
jne 0x4045f8
push 0x20
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40450e
push 0x20
push ebx
push esi
push edi
call fcn.00413170
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x20
push ebx
push edx
call fcn.00414750
push ebx
mov esi, eax
call dword [0x515004]
add esp, 0x28
test esi, esi
je 0x4044da
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044e2
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [section..data]
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
test edi, edi
jne 0x40451a
mov eax, dword [ebp - 0xc]
push eax
call dword [0x515004]
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push edi
call fcn.004abca0
add esp, 0xc
mov esi, edi
jmp 0x404530
push str._sha256__
push esi
call fcn.004ac010
mov edi, eax
add esp, 8
test edi, edi
je 0x404547
mov byte [edi], 0
lea ecx, [esi + 8]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x404550
sub ecx, edx
mov ebx, ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
jne 0x4045a8
lea edx, [esi + 8]
mov esi, dword [ebp - 0xc]
cmp ecx, 4
jb 0x404584
lea ecx, [ecx]
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x4045a8
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x404570
test ecx, ecx
je 0x4045c9
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4045a8
cmp ecx, 1
jbe 0x4045c9
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4045a8
cmp ecx, 2
jbe 0x4045c9
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x4045c9
test edi, edi
je 0x4045d0
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.004ac010
mov esi, eax
add esp, 8
test esi, esi
jne 0x404530
jmp 0x4045d0
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0xc]
push edx
call dword [0x515004]
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xc], 0
call dword [0x515004]
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4d8394
push ebx
call fcn.004ac799
mov ebx, eax
add esp, 8
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x40475a
push 2
push 0
push ebx
call fcn.004ac661
add esp, 0xc
test eax, eax
jne 0x404729
push ebx
call fcn.004ac572
push 0
push 0
push ebx
mov edi, eax
call fcn.004ac661
add esp, 0x10
test eax, eax
jne 0x404729
cmp edi, 0x100000
ja 0x404729
mov eax, edi
cdq
push edx
push eax
call fcn.0040d170
mov edi, eax
add esp, 8
cmp esi, edi
ja 0x404729
lea ecx, [edi + 1]
push ecx
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40472c
mov edx, dword [ebp + 0xc]
push edx
push 1
push edi
push ebx
call fcn.004ac3c1
add esp, 0x10
cmp eax, 1
jne 0x40472c
cmp esi, edi
jne 0x4046e9
mov edi, dword [ebp + 0x10]
mov eax, esi
mov ecx, ebx
cmp esi, 4
jb 0x4046bc
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x40472c
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x4046a8
test eax, eax
je 0x4046e0
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x40472c
cmp eax, 1
jbe 0x4046e0
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x40472c
cmp eax, 2
jbe 0x4046e0
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x40472c
mov dword [ebp - 8], 0
jmp 0x40472c
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
mov byte [edi + ebx], 0
call fcn.00404370
add esp, 8
test eax, eax
jne 0x40472c
cmp esi, dword [ebp - 0x18]
jne 0x40472c
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov eax, esi
cmp esi, 4
jb 0x4046bc
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x40472c
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x404713
jmp 0x4046bc
mov ebx, dword [ebp - 4]
push ebx
call dword [0x515004]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x515004]
mov edx, dword [ebp + 0xc]
push edx
mov dword [ebp - 0x10], 0
call fcn.004ac103
mov eax, dword [ebp - 8]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x5a
pop ebx
mov esp, ebp
pop ebp
ret