Function at 0x557970
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6091e6
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov eax, dword [esp + 0x32c]
mov esi, dword [esp + 0x328]
mov ecx, dword [esp + 0x334]
xor ebx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x557ce6
cmp byte [eax], bl
je 0x557ce6
push ebx
push 0x8000000
push 3
push ebx
push 3
push connect
push eax
call fcn.004e0400
mov edi, eax
push edi
mov dword [esp + 0x44], edi
call fcn.004d90d0
add esp, 0x20
test eax, eax
je 0x557ce6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x34], eax
jmp 0x557a38
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
push 0x103
lea edx, [esp + 0x215]
push ebx
push edx
mov byte [esp + 0x21c], bl
call fcn.005dfd60
mov eax, 0xf
add esp, 0xc
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x30]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esp + 0x334], ebx
mov dword [esp + 0x34], ebx
call ebp
mov eax, 4
cmp dword [esp + 0x2c], eax
jne 0x557c69
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x104
jae 0x557c69
push ebx
lea edx, [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x21c]
push eax
push edi
call ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x557c69
add dword [esp + 0x18], eax
push 0x50
push ecx
mov ecx, dword [str.__asflk__aasf_.zxdv_asd________k9034509k9____KKmnscmsfmiun__IOPc]
push ecx
lea edx, [esp + 0x21c]
push edx
call fcn.004db750
mov eax, dword [esp + 0x20]
cmp byte [esp + eax + 0x20f], bl
jne 0x557c69
lea eax, [esp + 0x210]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x557b30
sub eax, edx
push eax
lea ecx, [esp + 0x214]
push ecx
lea ecx, [esp + 0x64]
call fcn.004016b0
mov edi, dword [esi + 0x18]
mov ebp, dword [esi]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call fcn.0048b3a0
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x557b6d
cmp eax, ebp
je 0x557b72
call fcn.005e1e12
cmp dword [esi + 4], edi
mov edi, 0x10
sete byte [esp + 0x17]
cmp dword [esp + 0x74], edi
jb 0x557b92
mov ecx, dword [esp + 0x60]
push ecx
call fcn.005e0d9a
add esp, 4
mov esi, 0xf
cmp byte [esp + 0x17], bl
je 0x557c0f
lea eax, [esp + 0x210]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x557bb3
sub eax, edx
push eax
lea edx, [esp + 0x214]
push edx
lea ecx, [esp + 0x48]
call fcn.004016b0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x328], 1
call fcn.00536d70
cmp dword [esp + 0x58], edi
jb 0x557bff
mov edx, dword [esp + 0x44]
push edx
call fcn.005e0d9a
add esp, 4
inc dword [esp + 0x28]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x18], eax
je 0x557c82
cmp dword [esp + 0xc0], edi
jb 0x557c32
mov ecx, dword [esp + 0xac]
push ecx
call fcn.005e0d9a
add esp, 4
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
cmp dword [esp + 0xa4], edi
jb 0x557a30
mov edx, dword [esp + 0x90]
push edx
call fcn.005e0d9a
add esp, 4
jmp 0x557a30
lea ecx, [esp + 0x8c]
mov dword [esp + 0x320], 0xffffffff
call fcn.00556090
jmp 0x557ca9
lea ecx, [esp + 0x8c]
mov dword [esp + 0x30], 1
mov dword [esp + 0x320], 0xffffffff
call fcn.00556090
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x330], ebx
je 0x557ce0
cmp dword [esp + 0x30], ebx
jne 0x557ce0
mov edi, dword [esp + 0x3c]
push ebx
push edi
call fcn.005069c0
add esp, 8
test eax, eax
je 0x557ce0
mov eax, dword [esp + 0x38]
push eax
push edi
push esi
call fcn.00556440
add esp, 0xc
mov eax, dword [esp + 0x28]
jmp 0x557ce8
xor eax, eax
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x310
ret