Function at 0x40d3b4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
and dword [ebp - 8], edi
push 0x5a
pop esi
cmp dword [ebp + 0xc], edi
jne 0x40d3d0
xor eax, eax
jmp 0x40d626
push ebx
cmp dword [ebp + 0x10], edi
je 0x40d623
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40d623
push 8
push str.sha256__
push dword [ebp + 0xc]
call fcn.004408e0
add esp, 0xc
test eax, eax
jne 0x40d520
mov eax, dword [0x46c018]
cmp dword [eax + 0x5c], edi
je 0x40d623
push 0x20
call dword [section..data]
mov edi, eax
pop ecx
test edi, edi
je 0x40d498
mov eax, dword [0x46c018]
push 0x20
push edi
push ebx
push dword [ebp + 0x10]
call dword [eax + 0x5c]
add esp, 0x10
test eax, eax
jne 0x40d625
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x20
push edi
push dword [ebp + 8]
call fcn.0042511e
push edi
mov ebx, eax
call dword [0x46c004]
add esp, 0x18
test ebx, ebx
je 0x40d460
mov eax, ebx
jmp 0x40d625
push dword [ebp - 4]
push str._t_public_key_hash:_sha256___s_n
push dword [ebp + 8]
call fcn.00412a73
push dword [ebp + 0xc]
call fcn.0043b7c0
lea edi, [eax + 1]
push edi
call dword [section..data]
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x40d4a0
push dword [ebp - 4]
call dword [0x46c004]
pop ecx
push 0x1b
pop eax
jmp 0x40d625
push edi
push dword [ebp + 0xc]
push ebx
call fcn.00437160
add esp, 0xc
push str._sha256__
push ebx
call fcn.00438e70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40d4c3
mov byte [edi], 0
add ebx, 8
push ebx
call fcn.0043b7c0
pop ecx
cmp dword [ebp - 0xc], eax
jne 0x40d4e5
push dword [ebp - 0xc]
push ebx
push dword [ebp - 4]
call fcn.00437ec7
add esp, 0xc
test eax, eax
je 0x40d501
test edi, edi
je 0x40d503
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.00438e70
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40d4ad
jmp 0x40d503
xor esi, esi
push dword [ebp - 4]
call dword [0x46c004]
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [0x46c004]
pop ecx
pop ecx
jmp 0x40d623
push 0x459b24
push dword [ebp + 0xc]
call fcn.004213f3
mov dword [ebp + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x40d623
push 2
push 0
push eax
call fcn.00441213
add esp, 0xc
test eax, eax
jne 0x40d604
push dword [ebp + 0xc]
call fcn.0044196d
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call fcn.00441213
add esp, 0x10
test eax, eax
jne 0x40d604
mov eax, dword [ebp - 0x10]
cmp eax, 0x100000
ja 0x40d604
cdq
push edx
push eax
call fcn.004010c0
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
cmp ebx, eax
ja 0x40d604
inc eax
push eax
call dword [section..data]
mov edi, eax
pop ecx
test edi, edi
je 0x40d604
push dword [ebp + 0xc]
push 1
push dword [ebp - 0xc]
push edi
call fcn.0043b377
add esp, 0x10
cmp eax, 1
jne 0x40d604
mov eax, dword [ebp - 0xc]
cmp ebx, eax
jne 0x40d5d1
push ebx
push edi
push dword [ebp + 0x10]
call fcn.00437ec7
add esp, 0xc
test eax, eax
jne 0x40d604
xor esi, esi
jmp 0x40d604
mov byte [eax + edi], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.0040e132
add esp, 0xc
test eax, eax
jne 0x40d604
cmp ebx, dword [ebp - 4]
jne 0x40d604
push ebx
push dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.00437ec7
add esp, 0xc
neg eax
sbb eax, eax
and esi, eax
push edi
call dword [0x46c004]
push dword [ebp - 8]
call dword [0x46c004]
push dword [ebp + 0xc]
and dword [ebp - 8], 0
call fcn.0043b970
add esp, 0xc
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret