Function at 0x1002855c
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
and dword [esp + 0xc], edi
push 0x5a
pop esi
test ebp, ebp
jne 0x1002857a
xor eax, eax
jmp 0x100287f3
push ebx
cmp dword [esp + 0x2c], edi
je 0x100287f0
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x100287f0
push 8
push 0x1008e068
push ebp
call fcn.1005bea0
add esp, 0xc
test eax, eax
jne 0x100286ea
mov eax, dword [0x1008e0c0]
cmp dword [eax + 0x5c], edi
je 0x100287f0
push 0x20
call dword [0x1008d098]
mov edi, eax
pop ecx
test edi, edi
je 0x10028655
mov eax, dword [0x1008e0c0]
push 0x20
push edi
push ebx
push dword [esp + 0x38]
call dword [eax + 0x5c]
add esp, 0x10
test eax, eax
jne 0x100287f2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x20
push edi
push dword [esp + 0x34]
call fcn.1004d574
push edi
mov ebx, eax
call dword [0x1008d09c]
add esp, 0x18
test ebx, ebx
je 0x10028612
mov eax, ebx
jmp 0x100287f2
push dword [esp + 0x28]
push str._t_public_key_hash:_sha256___s_n
push dword [esp + 0x2c]
call fcn.10029490
mov ecx, ebp
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002862c
sub ecx, edx
lea edi, [ecx + 1]
push edi
call dword [0x1008d098]
mov ebx, eax
pop ecx
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x1002865d
push dword [esp + 0x28]
call dword [0x1008d09c]
pop ecx
push 0x1b
pop eax
jmp 0x100287f2
push edi
push ebp
push ebx
call fcn.1005b1c0
add esp, 0xc
push str._sha256__
push ebx
call fcn.1005a6d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1002867e
mov byte [edi], 0
lea edx, [ebx + 8]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028686
sub ecx, ebx
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
jne 0x100286ab
push dword [esp + 0x14]
push edx
push ebx
call fcn.1005cdad
add esp, 0xc
test eax, eax
je 0x100286e6
test edi, edi
je 0x100286c9
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.1005a6d0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x10028668
mov ebx, dword [esp + 0x28]
push ebx
call dword [0x1008d09c]
push dword [esp + 0x1c]
and dword [esp + 0x30], 0
call dword [0x1008d09c]
pop ecx
pop ecx
jmp 0x100287f0
xor esi, esi
jmp 0x100286c9
push 0x1008e0ac
push ebp
call fcn.1005bbc6
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x100287f0
push 2
push 0
push ebp
call fcn.1005c589
add esp, 0xc
test eax, eax
jne 0x100287d1
push ebp
call fcn.1005cd45
push 0
push 0
push ebp
mov dword [esp + 0x28], eax
call fcn.1005c589
add esp, 0x10
test eax, eax
jne 0x100287d1
mov eax, dword [esp + 0x18]
cmp eax, 0x100000
ja 0x100287d1
cdq
push edx
push eax
call fcn.1000cad8
pop ecx
pop ecx
mov dword [esp + 0x18], eax
cmp ebx, eax
ja 0x100287d1
inc eax
push eax
call dword [0x1008d098]
mov edi, eax
pop ecx
test edi, edi
je 0x100287d1
push ebp
push 1
push dword [esp + 0x20]
push edi
call fcn.1005af34
add esp, 0x10
cmp eax, 1
jne 0x100287d1
mov eax, dword [esp + 0x18]
cmp ebx, eax
jne 0x10028798
push ebx
push edi
push dword [esp + 0x34]
call fcn.1005cdad
add esp, 0xc
test eax, eax
jne 0x100287d1
xor esi, esi
jmp 0x100287d1
mov byte [eax + edi], 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.100291a9
add esp, 0xc
test eax, eax
jne 0x100287d1
cmp ebx, dword [esp + 0x1c]
jne 0x100287d1
push ebx
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.1005cdad
xor ecx, ecx
add esp, 0xc
test eax, eax
cmove esi, ecx
push edi
call dword [0x1008d09c]
push dword [esp + 0x14]
call dword [0x1008d09c]
and dword [esp + 0x18], 0
push ebp
call fcn.1005b94c
add esp, 0xc
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret