Function at 0x518fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [esp + 0x2c]
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
test ebx, ebx
je 0x519068
mov ebp, dword [esp + 0x30]
mov esi, 0x5a
test ebp, ebp
je 0x51906a
cmp dword [esp + 0x34], 0
je 0x51906a
push 8
push 0x66af7d
push ebx
call fcn.005fefa0
add esp, 0xc
test eax, eax
je 0x51907f
push 0x665877
push ebx
call fcn.0057a350
add esp, 8
test eax, eax
je 0x51906a
mov edi, eax
push 2
push 0
push eax
call fcn.005f3c1e
add esp, 0xc
mov esi, 0x5a
test eax, eax
je 0x5191a3
xor ebx, ebx
push ebx
call dword [0x7c3880]
add esp, 4
push dword [esp + 0xc]
call dword [0x7c3880]
add esp, 4
mov dword [esp + 0xc], 0
push edi
call fcn.005fcd83
add esp, 4
jmp 0x51906a
xor esi, esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005db451
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x7c3a04]
cmp dword [eax + 0x5c], 0
je 0x519226
push 0x20
call dword [0x7c387c]
add esp, 4
mov esi, 0x1b
test eax, eax
je 0x51906a
mov edi, eax
mov eax, dword [0x7c3a04]
push 0x20
push edi
push dword [esp + 0x3c]
push ebp
call dword [eax + 0x5c]
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x51906a
mov ebp, dword [esp + 0x28]
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push ecx
push 0x20
push edi
push ebp
call fcn.0057a6b0
add esp, 0x14
mov esi, eax
push edi
call dword [0x7c3880]
add esp, 4
test esi, esi
jne 0x51906a
push dword [esp + 4]
push str._public_key_hash:_sha256___s
push ebp
call fcn.0051ec50
add esp, 0xc
push ebx
call fcn.005fef10
add esp, 4
mov esi, eax
add esi, 1
push esi
call dword [0x7c387c]
add esp, 4
test eax, eax
je 0x519230
mov edi, eax
push esi
push ebx
push eax
call fcn.005e2280
add esp, 0xc
mov dword [esp], edi
mov ebx, edi
push str._sha256__
push ebx
call fcn.005e2bd0
add esp, 8
mov esi, eax
test eax, eax
je 0x519142
mov byte [esi], 0
mov edi, dword [esp + 8]
add ebx, 8
push ebx
call fcn.005fef10
add esp, 4
cmp edi, eax
jne 0x519176
mov ebp, dword [esp + 4]
push edi
push ebx
push ebp
call fcn.005e136d
add esp, 0xc
test eax, eax
je 0x519299
test esi, esi
jne 0x51917a
jmp 0x519299
test esi, esi
je 0x519195
mov byte [esi], 0x3b
push 0x66af7d
push esi
call fcn.005e2bd0
add esp, 8
test esi, esi
je 0x519195
mov ebx, eax
test eax, eax
jne 0x51912b
mov esi, 0x5a
mov ebp, dword [esp + 4]
jmp 0x5192a3
push edi
call fcn.005f482b
add esp, 4
mov ebx, eax
push 0
push 0
push edi
call fcn.005f3c1e
add esp, 0xc
cmp ebx, 0x100000
ja 0x51903c
test eax, eax
jne 0x51903c
push 0
push ebx
call fcn.00441d10
add esp, 8
cmp eax, dword [esp + 0x34]
jb 0x51903c
mov dword [esp], eax
add eax, 1
push eax
call dword [0x7c387c]
add esp, 4
test eax, eax
je 0x51903c
mov ebx, eax
push edi
push 1
push dword [esp + 8]
push eax
call fcn.005fd6df
add esp, 0x10
cmp eax, 1
jne 0x51903e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp]
cmp ecx, eax
jne 0x51924f
push eax
push ebx
jmp 0x519281
mov esi, 0x5a
jmp 0x51906a
push dword [esp + 4]
call dword [0x7c3880]
add esp, 4
mov dword [esp + 4], 0
mov esi, 0x1b
jmp 0x51906a
mov byte [ebx + ecx], 0
lea eax, [esp + 8]
lea edx, [esp + 0xc]
mov ecx, ebx
push eax
call fcn.005192d0
add esp, 4
test eax, eax
jne 0x51903e
mov eax, dword [esp + 0x34]
cmp dword [esp + 8], eax
jne 0x51903e
push eax
push dword [esp + 0x10]
push ebp
call fcn.005e136d
add esp, 0xc
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x51903e
test eax, eax
mov esi, 0x5a
cmove esi, eax
push ebp
call dword [0x7c3880]
add esp, 4
mov dword [esp + 4], 0
push dword [esp]
call dword [0x7c3880]
jmp 0x519063