Function at 0x488950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x5a
test esi, esi
jne 0x488973
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x488e40
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x488e40
push 8
push str.sha256__
push esi
call fcn.004f6420
add esp, 0xc
test eax, eax
jne 0x488b9d
mov eax, dword [0x55f070]
cmp dword [eax + 0x5c], 0
je 0x488e40
mov esi, dword [fcn.004f0180]
mov ecx, esi
push 0x20
call dword [0x51a4a0]
call esi
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x488a8f
push 0x20
push eax
mov eax, dword [0x55f070]
push ebx
push edi
mov esi, dword [eax + 0x5c]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 0x10
test eax, eax
jne 0x488e45
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20
push esi
push ebx
call fcn.004a7ab0
add esp, 0x14
mov edi, eax
push esi
mov esi, dword [fcn.004ebfb0]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
test edi, edi
je 0x488a31
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push str._t_public_key_hash:_sha256___s_n
push ebx
call fcn.004903d0
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x488a50
mov esi, dword [fcn.004f0180]
sub ecx, edx
lea ebx, [ecx + 1]
mov ecx, esi
push ebx
call dword [0x51a4a0]
call esi
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x488a9b
push dword [ebp - 4]
mov esi, dword [fcn.004ebfb0]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
pop edi
pop ebx
mov eax, 0x1b
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call fcn.004e8240
add esp, 0xc
nop word [eax + eax]
push str._sha256__
push esi
call fcn.004e9190
mov edi, eax
add esp, 8
test edi, edi
je 0x488ac7
mov byte [edi], 0
lea ecx, [esi + 8]
mov edx, ecx
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x488ad0
mov ebx, dword [ebp - 4]
sub edx, esi
mov esi, dword [ebp - 0x10]
cmp esi, edx
jne 0x488b37
mov edx, ebx
sub esi, 4
jb 0x488b01
nop word [eax + eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x488b0a
add edx, 4
add ecx, 4
sub esi, 4
jae 0x488af0
cmp esi, 0xfffffffc
je 0x488b94
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x488b37
cmp esi, 0xfffffffd
je 0x488b94
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x488b37
cmp esi, 0xfffffffe
je 0x488b94
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x488b37
cmp esi, 0xffffffff
je 0x488b94
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x488b94
test edi, edi
je 0x488b59
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.004e9190
mov esi, eax
add esp, 8
test esi, esi
jne 0x488ab0
mov ebx, dword [ebp - 4]
mov esi, dword [fcn.004ebfb0]
mov ecx, esi
push ebx
call dword [0x51a4a0]
call esi
mov esi, dword [fcn.004ebfb0]
add esp, 4
mov ecx, esi
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [0x51a4a0]
call esi
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
jmp 0x488b59
push 0x51ee5c
push esi
call fcn.004f6a45
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
je 0x488e40
push 2
push 0
push esi
call fcn.004f9ef0
add esp, 0xc
test eax, eax
jne 0x488dfb
push esi
call fcn.004fae3c
push 0
push 0
push dword [ebp - 0x10]
mov esi, eax
call fcn.004f9ef0
add esp, 0x10
test eax, eax
jne 0x488dfb
cmp esi, 0x100000
ja 0x488dfb
mov eax, esi
cdq
push edx
push eax
call fcn.00424500
add esp, 8
mov dword [ebp - 0x14], eax
cmp ebx, eax
ja 0x488dfb
mov esi, dword [fcn.004f0180]
inc eax
push eax
mov ecx, esi
call dword [0x51a4a0]
call esi
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x488dfd
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x14]
push esi
call fcn.004f95c0
add esp, 0x10
cmp eax, 1
jne 0x488dfd
mov ecx, dword [ebp - 0x14]
cmp ebx, ecx
jne 0x488cbf
mov ecx, esi
sub ebx, 4
jb 0x488c71
nop word [eax + eax]
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x488c76
add edi, 4
add ecx, 4
sub ebx, 4
jae 0x488c60
cmp ebx, 0xfffffffc
je 0x488cb3
mov al, byte [edi]
cmp al, byte [ecx]
jne 0x488dfd
cmp ebx, 0xfffffffd
je 0x488cb3
mov al, byte [edi + 1]
cmp al, byte [ecx + 1]
jne 0x488dfd
cmp ebx, 0xfffffffe
je 0x488cb3
mov al, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x488dfd
cmp ebx, 0xffffffff
je 0x488cb3
mov al, byte [edi + 3]
cmp al, byte [ecx + 3]
jne 0x488dfd
mov dword [ebp - 8], 0
jmp 0x488dfd
mov eax, esi
mov dword [ebp - 0x14], 0
push str._____BEGIN_PUBLIC_KEY_____
push eax
mov byte [ecx + eax], 0
call fcn.004e9190
add esp, 8
test eax, eax
je 0x488dfd
mov edi, eax
sub edi, esi
je 0x488cf2
cmp byte [eax - 1], 0xa
jne 0x488dfd
add edi, 0x1a
push str._n_____END_PUBLIC_KEY_____
lea eax, [edi + esi]
push eax
call fcn.004e9190
add esp, 8
test eax, eax
je 0x488dfd
sub eax, esi
mov esi, dword [fcn.004f0180]
mov dword [ebp - 0x18], eax
mov ecx, esi
sub eax, edi
inc eax
push eax
call dword [0x51a4a0]
call esi
mov esi, eax
add esp, 4
test esi, esi
je 0x488df6
mov edx, dword [ebp - 0x18]
cmp edi, edx
jae 0x488d5c
mov eax, dword [ebp - 4]
xor ebx, ebx
mov cl, byte [edi + eax]
cmp cl, 0xa
je 0x488d51
cmp cl, 0xd
je 0x488d51
mov byte [esi + ebx], cl
inc ebx
inc edi
cmp edi, edx
jb 0x488d40
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov byte [esi + eax], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004a78e0
add esp, 0xc
mov edi, eax
push esi
mov esi, dword [fcn.004ebfb0]
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
test edi, edi
jne 0x488df6
cmp ebx, dword [ebp - 0x1c]
jne 0x488df6
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
sub ebx, 4
jb 0x488db1
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x488db6
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x488da0
cmp ebx, 0xfffffffc
je 0x488def
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x488de3
cmp ebx, 0xfffffffd
je 0x488def
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x488de3
cmp ebx, 0xfffffffe
je 0x488def
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x488de3
cmp ebx, 0xffffffff
je 0x488def
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x488def
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0x5a
jmp 0x488dfd
mov dword [ebp - 8], 0
mov esi, dword [ebp - 4]
jmp 0x488dfd
xor esi, esi
push esi
mov esi, dword [fcn.004ebfb0]
mov ecx, esi
call dword [0x51a4a0]
call esi
mov esi, dword [fcn.004ebfb0]
add esp, 4
mov ecx, esi
push dword [ebp - 0xc]
call dword [0x51a4a0]
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 0
call fcn.004f6ad3
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret