Function at 0x546b60
Capabilities:
Get file size
Move file
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x608fe7
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
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 [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push 0x103
xor ebx, ebx
lea edx, [esp + 0x209]
push ebx
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x210], 0
call fcn.005dfd60
add esp, 0xc
push 0x6550dc
push 0x654fc8
lea ecx, [esp + 0x84]
mov dword [esp + 0x78], ebx
call fcn.005457f0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x320], ebx
call fcn.00541b40
lea eax, [esp + 0x12]
push eax
lea ecx, [esp + 0x16]
push ecx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x328], 1
call fcn.00542290
lea ecx, [esp + 0x7c]
mov byte [esp + 0x320], 2
call fcn.00546870
push 1
push ebx
push ebx
push ebx
lea edx, [esp + 0x80]
push edx
push edi
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x547116
push ebx
push 0x80
push 3
push ebx
push 3
push connect
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
call fcn.004e0400
add esp, 0x1c
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x54718d
cmp eax, ebx
je 0x54718d
push ebx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x546f61
lea ebx, [esi + 0x401]
push ebx
call fcn.005e20e4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x546f5f
push ebx
mov ebx, eax
push 0
push ebx
call fcn.005dfd60
mov ecx, dword [esp + 0x34]
add esp, 0xc
push 0
lea eax, [esp + 0x3c]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x546f5f
cmp dword [esp + 0x38], 0
jbe 0x546f5f
lea edx, [esp + 0x48]
push edx
push str.LastCacheLine
push 0x6111b8
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], ebx
call fcn.004d5820
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
call fcn.004d5cb0
mov esi, eax
cmp esi, ebx
je 0x546f5f
mov eax, dword [esp + 0x68]
inc dword [eax]
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x48]
jbe 0x546f35
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x546d70
sub eax, edx
je 0x546f35
cmp byte [esi], cl
je 0x546f35
push 5
push esi
call fcn.0053fe30
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
cmp ebx, 0x2e2
je 0x546da8
cmp ebx, 0x2e3
jne 0x546db0
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x7c]
mov edx, dword [eax]
lea edi, [esp + 0x14]
push edi
push eax
push ecx
push edx
push ecx
call fcn.00543830
add esp, 0x14
test al, al
jne 0x546e0f
push esi
lea ecx, [esp + 0xe4]
call fcn.004029f0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0xe0]
push edx
push eax
push ecx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x330], 3
call fcn.00544fe0
jmp 0x546f0d
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], ebx
call fcn.00541360
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x78], ecx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x78], edx
call fcn.00540490
test al, al
je 0x546eb6
lea ecx, [esp + 0x20]
call fcn.00540700
add eax, 4
cmp ebx, 0x2e1
jne 0x546e7c
cmp dword [esp + 0x30], 1
je 0x546e94
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x58]
call fcn.00542e80
mov ecx, dword [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0xac]
call fcn.00541ea0
mov dword [esp + 0x18], 1
push esi
lea ecx, [esp + 0xe4]
call fcn.004029f0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0xe0]
push edx
push eax
push ecx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x330], 4
mov dword [esp + 0x24], ebx
call fcn.00544fe0
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xa4]
call fcn.00545510
mov dword [eax], esi
mov dword [eax + 4], edi
lea ecx, [esp + 0xe0]
mov byte [esp + 0x320], 2
call fcn.005410f0
mov edi, dword [esp + 0x2c]
cmp ebx, 0x2e1
jne 0x546f35
mov dword [esp + 0x30], 0
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x50]
push eax
push 0
call fcn.004d5cb0
mov esi, eax
test esi, esi
jne 0x546d4c
xor ebx, ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.004dca10
cmp dword [esp + 0x18], ebx
je 0x547105
push 0x103
lea edx, [esp + 0x101]
push ebx
push edx
mov byte [esp + 0x108], 0
call fcn.005dfd60
lea edx, [esp + 0x108]
add esp, 0xc
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x546fa0
lea eax, [esp + 0xfc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x546fb4
sub eax, edx
mov byte [esp + eax + 0xfb], 0x24
lea eax, [esp + 0xfc]
push 0x60cf08
push eax
call fcn.005e00ad
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x547105
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
mov esi, dword [esp + 0x4c]
mov edi, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
lea ebx, [ebx]
mov ebx, dword [esp + 0x60]
test esi, esi
je 0x54700e
cmp esi, dword [esp + 0x4c]
je 0x547013
call fcn.005e1e12
cmp edi, ebx
je 0x5470d9
mov eax, dword [esp + 0x6c]
inc dword [eax]
test esi, esi
jne 0x5470d2
call fcn.005e1e12
cmp edi, dword [esi + 0x14]
jne 0x547038
call fcn.005e1e12
push 0xffffffffffffffff
lea eax, [edi + 8]
push 0
push eax
lea ecx, [esp + 0xec]
mov dword [esp + 0x104], 0xf
mov dword [esp + 0x100], 0
mov byte [esp + 0xf0], 0
call fcn.00401280
mov eax, dword [esp + 0xe4]
mov esi, 0x10
cmp dword [esp + 0xf8], esi
jae 0x547086
lea eax, [esp + 0xe4]
mov edx, dword [esp + 0x18]
push eax
push 0x60c990
push edx
call fcn.005dfdda
add esp, 0xc
cmp dword [esp + 0xf8], esi
jb 0x5470b2
mov eax, dword [esp + 0xe4]
push eax
call fcn.005e0d9a
add esp, 4
push 0
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x28]
call fcn.005406b0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x547000
mov esi, dword [esi]
jmp 0x54702e
mov edx, dword [esp + 0x18]
push edx
call fcn.005dff6d
mov esi, dword [esp + 0x30]
push esi
call fcn.004e0670
add esp, 8
test eax, eax
je 0x547103
push esi
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x547116
push eax
call fcn.005e0865
add esp, 4
lea ecx, [esp + 0xa0]
mov byte [esp + 0x320], 1
call fcn.00543b10
lea ecx, [esp + 0x4c]
call fcn.00542320
mov edx, dword [esp + 0x60]
push edx
call fcn.005e0d9a
mov eax, dword [esp + 0x50]
push eax
mov dword [esp + 0x68], ebx
call fcn.005e0d9a
add esp, 8
lea ecx, [esp + 0x7c]
call fcn.00540d60
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.005e0d9a
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret
push 0x103
lea ecx, [esp + 0x101]
push ebx
push ecx
mov byte [esp + 0x108], 0
call fcn.005dfd60
lea edx, [esp + 0x108]
push 0x104
push edx
call fcn.004d8c20
lea eax, [esp + 0x110]
push eax
push edi
lea ecx, [esp + 0x220]
push str.EVCACHE:_Unable_to_open___s___Reason:__s
push ecx
call fcn.005dfb23
add esp, 0x24
lea ecx, [esp + 0xa0]
mov byte [esp + 0x320], 1
call fcn.00543b10
lea ecx, [esp + 0x4c]
call fcn.00542320
mov edx, dword [esp + 0x60]
push edx
call fcn.005e0d9a
mov eax, dword [esp + 0x50]
push eax
mov dword [esp + 0x68], ebx
call fcn.005e0d9a
add esp, 8
lea ecx, [esp + 0x7c]
call fcn.00540d60
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.005e0d9a
add esp, 4
xor eax, eax
jmp 0x547169