Function at 0x552a70
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x648]
sub esp, 0x648
push 0xfffffffffffffffe
push 0x674d60
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x644], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp + 0x540], 0
push 0x103
xor edi, edi
push edi
lea eax, [ebp + 0x541]
push eax
call fcn.005dfd60
mov dword [ebp - 0x2c], edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp], edi
push 0x13c
push edi
lea ecx, [ebp + 4]
push ecx
call fcn.005dfd60
add esp, 0x18
mov dword [ebp - 4], edi
push 0x104
lea edx, [ebp + 0x540]
push edx
call fcn.004f0410
lea eax, [ebp + 0x540]
push eax
call fcn.004e24e0
add esp, 0xc
lea eax, [ebp + 0x540]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x552b20
mov ecx, dword [str.FACACHE.DAT]
mov dword [eax], ecx
mov edx, dword [0x6581c8]
mov dword [eax + 4], edx
mov ecx, dword [0x6581cc]
mov dword [eax + 8], ecx
push 1
push edi
push edi
push edi
push edi
lea edx, [ebp + 0x540]
push edx
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x552baf
push edi
push 0x8000000
push 3
push edi
push 3
push connect
lea eax, [ebp + 0x540]
push eax
call fcn.004e0400
mov dword [ebp - 0x20], eax
push eax
call fcn.004d90d0
add esp, 0x20
test eax, eax
je 0x552baf
push edi
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jne 0x552bbd
lea edx, [ebp - 0x20]
push edx
call fcn.004dca10
push edi
lea eax, [ebp + 0x540]
push eax
call fcn.005069c0
add esp, 8
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x552dda
push edi
push 0x8000000
push 4
push edi
push 1
push 0xc0000000
push 0x6afad0
call fcn.004e0400
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004d90d0
add esp, 0x20
test eax, eax
je 0x552b96
lea ebx, [ebx]
mov dword [ebp - 0x1c], edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push 4
lea edx, [ebp + 0x140]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
cmp dword [ebp - 0x24], 4
jne 0x552d8a
movsx ecx, byte [ebp + 0x140]
push ecx
call fcn.005e1981
add esp, 4
test eax, eax
je 0x552d8a
movsx edx, byte [ebp + 0x141]
push edx
call fcn.005e1981
add esp, 4
test eax, eax
je 0x552d8a
movsx eax, byte [ebp + 0x142]
push eax
call fcn.005e1981
add esp, 4
test eax, eax
je 0x552d8a
movsx ecx, byte [ebp + 0x143]
push ecx
call fcn.005e1981
add esp, 4
test eax, eax
je 0x552d8a
mov byte [ebp + 0x144], 0
lea edx, [ebp - 0x1c]
push edx
push 0x616454
lea eax, [ebp + 0x140]
push eax
call fcn.005e5957
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp eax, 0x400
jae 0x552d8a
push edi
lea ecx, [ebp - 0x24]
push ecx
push eax
lea edx, [ebp + 0x140]
push edx
mov eax, dword [ebp - 0x20]
push eax
call esi
mov eax, dword [ebp - 0x1c]
cmp byte [ebp + eax + 0x13f], 0
jne 0x552d8a
cmp dword [ebp - 0x24], eax
jne 0x552d8a
push edi
lea ecx, [ebp - 0x24]
push ecx
push 0x140
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x20]
push eax
call esi
cmp dword [ebp - 0x24], 0x140
jne 0x552d8a
push 0x50
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [str.__asflk__aasf_.zxdv_asd________k9034509k9____KKmnscmsfmiun__IOPc]
push edx
lea eax, [ebp + 0x140]
push eax
call fcn.004db750
mov ecx, dword [ebp - 0x1c]
add ecx, 0x144
push ecx
call fcn.004d9470
add esp, 4
mov ebx, eax
mov dword [ebp - 0x30], ebx
cmp ebx, edi
je 0x552d8a
mov edx, dword [ebp - 0x1c]
mov dword [ebx], edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x140]
push ecx
lea edx, [ebx + 4]
push edx
call fcn.005e13c0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
lea edi, [eax + ebx + 4]
mov ecx, 0x50
lea esi, [ebp]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x144
push edx
push ebx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x552d75
inc dword [ebp - 0x2c]
push ebx
call fcn.005e0865
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x30], ebx
xor edi, edi
jmp 0x552bf0
mov dword [ebp - 4], 0xfffffffe
jmp 0x552da8
cmp ebx, edi
je 0x552db5
push ebx
call fcn.005e0865
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
call fcn.004dca10
lea edx, [ebp - 0x28]
push edx
call fcn.004dca10
push edi
lea eax, [ebp + 0x540]
push eax
call fcn.005069c0
add esp, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x644]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x648
mov esp, ebp
pop ebp
ret