Function at 0x10047960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0xc], 0x5a
cmp dword [ebp + 0xc], 0
jne 0x10047988
xor eax, eax
jmp 0x10047d87
cmp dword [ebp + 0x10], 0
je 0x10047994
cmp dword [ebp + 0x14], 0
jne 0x1004799c
mov eax, dword [ebp - 0xc]
jmp 0x10047d87
push 8
push 0x100d1318
mov eax, dword [ebp + 0xc]
push eax
call fcn.1001f440
add esp, 0xc
test eax, eax
jne 0x10047beb
mov ecx, dword [0x100d1264]
cmp dword [ecx + 0x58], 0
jne 0x100479cb
mov eax, dword [ebp - 0xc]
jmp 0x10047d87
push 0x20
call dword [0x100d05f0]
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100479e9
mov eax, 0x1b
jmp 0x10047d87
push 0x20
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x100d1264]
mov eax, dword [edx + 0x58]
call eax
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10047a16
mov eax, dword [ebp - 0x20]
jmp 0x10047d87
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x20
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10091a10
add esp, 0x14
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x100d05f8]
add esp, 4
mov dword [ebp - 0x1c], 0
xor eax, eax
jne 0x10047a33
cmp dword [ebp - 0x20], 0
je 0x10047a59
mov eax, dword [ebp - 0x20]
jmp 0x10047d87
mov ecx, dword [ebp - 0x14]
push ecx
push str._t_public_key_hash:_sha256___s_n
mov edx, dword [ebp + 8]
push edx
call fcn.100588f0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x24]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 0x24], 1
cmp byte [ebp - 1], 0
jne 0x10047a7d
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call dword [0x100d05f0]
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10047ad9
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x100d05f8]
add esp, 4
mov dword [ebp - 0x14], 0
xor edx, edx
jne 0x10047ab7
mov eax, 0x1b
jmp 0x10047d87
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.10019d10
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
push str._sha256__
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1001e180
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10047b1c
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x2c]
add edx, 8
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx]
mov byte [ebp - 2], dl
add dword [ebp - 0x28], 1
cmp byte [ebp - 2], 0
jne 0x10047b2e
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0x54]
jne 0x10047b7a
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 8
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1001b134
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x10047b7a
mov dword [ebp - 0xc], 0
jmp 0x10047bb3
cmp dword [ebp - 0x10], 0
je 0x10047ba3
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0x3b
push str.sha256__
mov edx, dword [ebp - 0x10]
push edx
call fcn.1001e180
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x10], 0
je 0x10047bb3
cmp dword [ebp - 0x2c], 0
jne 0x10047af3
mov eax, dword [ebp - 0x14]
push eax
call dword [0x100d05f8]
add esp, 4
mov dword [ebp - 0x14], 0
xor ecx, ecx
jne 0x10047bb3
mov edx, dword [ebp - 0x30]
push edx
call dword [0x100d05f8]
add esp, 4
mov dword [ebp - 0x30], 0
xor eax, eax
jne 0x10047bcb
mov eax, dword [ebp - 0xc]
jmp 0x10047d87
push 0x100d135c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10091020
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10047c0d
mov eax, dword [ebp - 0xc]
jmp 0x10047d87
push 2
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.1001ffbf
add esp, 0xc
test eax, eax
je 0x10047c26
jmp 0x10047d48
mov eax, dword [ebp - 0x18]
push eax
call fcn.1001fec4
add esp, 4
mov dword [ebp - 0x3c], eax
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1001ffbf
add esp, 0xc
test eax, eax
je 0x10047c4e
jmp 0x10047d48
cmp dword [ebp - 0x3c], 0
jl 0x10047c5d
cmp dword [ebp - 0x3c], 0x100000
jle 0x10047c62
jmp 0x10047d48
mov eax, dword [ebp - 0x3c]
cdq
push edx
push eax
call fcn.100497c0
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x34]
jbe 0x10047c80
jmp 0x10047d48
mov eax, dword [ebp - 0x34]
add eax, 1
push eax
call dword [0x100d05f0]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10047c9e
jmp 0x10047d48
mov ecx, dword [ebp - 0x18]
push ecx
push 1
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1001e9e6
add esp, 0x10
cmp eax, 1
je 0x10047cbe
jmp 0x10047d48
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x34]
jne 0x10047cec
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1001b134
add esp, 0xc
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x10047cea
mov dword [ebp - 0xc], 0
jmp 0x10047d48
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x34]
mov byte [edx], 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10047d90
add esp, 0xc
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x10047d14
jmp 0x10047d48
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x64]
jne 0x10047d40
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.1001b134
add esp, 0xc
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x10047d40
mov dword [ebp - 0xc], 0
xor ecx, ecx
jne 0x10047c0d
mov edx, dword [ebp - 8]
push edx
call dword [0x100d05f8]
add esp, 4
mov dword [ebp - 8], 0
xor eax, eax
jne 0x10047d48
mov ecx, dword [ebp - 0x38]
push ecx
call dword [0x100d05f8]
add esp, 4
mov dword [ebp - 0x38], 0
xor edx, edx
jne 0x10047d60
mov eax, dword [ebp - 0x18]
push eax
call fcn.1001f374
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret