Function at 0x4b7180
Capabilities:
Copy file
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589e96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.004b5990
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004b5990
mov eax, dword [0x639ad4]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push edx
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004b7020
cmp eax, edi
jne 0x4b7230
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4b7224
push eax
call fcn.005664c5
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4b733e
or ebx, 0xffffffff
lea ecx, [ebp + 0x10]
push ebx
push ecx
mov ecx, esi
call fcn.004b7020
cmp eax, edi
jne 0x4b726f
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4b733b
jmp 0x4b7332
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x4b7243
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4b7243
mov edx, dword [ebp + 0xc]
push edi
push 0x80
push 3
push edi
push 1
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
jne 0x4b734e
lea ecx, [ebp - 0x138]
call fcn.0046f750
mov eax, dword [0x639ad4]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
push str.Error__ld_CreateFile___during_CPluginEditor::UpdatePlugin___r_n
push ecx
call fcn.00562ecb
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push edx
call fcn.0046f830
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.0056a100
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4b733b
push eax
call fcn.005664c5
add esp, 4
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x4b79d6
jmp 0x4b79cd
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x4b7404
lea ecx, [ebp - 0x138]
call fcn.0046f750
mov ecx, dword [0x639ad4]
mov dword [ebp + 8], ecx
push edi
lea edx, [ebp + 8]
push str.Error__ld_GetFileSize___during_CPluginEditor::UpdatePlugin___r_n
push edx
mov byte [ebp - 4], 8
call fcn.00562ecb
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.0046f830
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.0056a100
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4b73ed
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b79d6
jmp 0x4b79cd
lea ecx, [ebx + 1]
push ecx
call fcn.0056649c
mov ecx, ebx
mov dword [ebp + 8], eax
mov edi, dword [ebp + 8]
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4b78ce
cmp dword [ebp - 0x28], ebx
jne 0x4b78ce
mov esi, dword [ebp + 8]
push ebx
push 0x46
push esi
call fcn.0054ede0
add esp, 0xc
test eax, eax
jne 0x4b74e3
lea ecx, [ebp - 0x138]
call fcn.0046f750
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xb
call fcn.0046f830
push esi
call fcn.005664c5
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4b74cc
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b79d6
jmp 0x4b79cd
mov edx, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [edx + 0x20]
mov edi, dword [edx + 0x1c]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4b7594
test eax, eax
jne 0x4b757b
lea ecx, [ebp - 0x138]
call fcn.0046f750
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xc
call fcn.0046f830
mov eax, dword [ebp + 8]
push eax
call fcn.005664c5
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4b7564
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b79d6
jmp 0x4b79cd
mov ecx, dword [ebp + 8]
inc eax
sub ecx, eax
add ecx, ebx
push ecx
push 0x46
push eax
call fcn.0054ede0
add esp, 0xc
jmp 0x4b74e3
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x20]
cmp byte [eax], 0
jne 0x4b75a2
inc eax
jmp 0x4b759a
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
sub ecx, eax
add ecx, ebx
push ecx
push 0x4d
push eax
call fcn.0054ede0
add esp, 0xc
test eax, eax
jne 0x4b764e
lea ecx, [ebp - 0x138]
call fcn.0046f750
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xd
call fcn.0046f830
mov edx, dword [ebp + 8]
push edx
call fcn.005664c5
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4b7637
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b79d6
jmp 0x4b79cd
mov edx, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [edx + 0x28]
mov edi, dword [edx + 0x24]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4b76ff
test eax, eax
jne 0x4b76e6
lea ecx, [ebp - 0x138]
call fcn.0046f750
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xe
call fcn.0046f830
mov eax, dword [ebp + 8]
push eax
call fcn.005664c5
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4b76cf
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b79d6
jmp 0x4b79cd
mov ecx, dword [ebp + 8]
inc eax
sub ecx, eax
add ecx, ebx
push ecx
push 0x4d
push eax
call fcn.0054ede0
add esp, 0xc
jmp 0x4b764e
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x28]
cmp byte [eax], 0
jne 0x4b770d
inc eax
jmp 0x4b7705
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
push 2
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b77f2
lea ecx, [ebp - 0x138]
call fcn.0046f750
mov edx, dword [0x639ad4]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push str.Error__ld_CreateFile___during_CPluginEditor::UpdatePlugin___r_n
push eax
call fcn.00562ecb
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x138]
call fcn.0046f830
mov edx, dword [ebp + 8]
push edx
call fcn.005664c5
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.0056a100
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4b77db
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b79d6
jmp 0x4b79cd
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
jne 0x4b7866
lea ecx, [ebp - 0x138]
call fcn.0046f750
mov ecx, dword [0x639ad4]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp + 8]
push str.Error__ld_WriteFile___during_CPluginEditor::UpdatePlugin___r_n
push edx
call fcn.00562ecb
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.0046f830
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x11
call fcn.0056a100
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.005664c5
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4b78a2
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b78b9
push eax
call fcn.005664c5
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x138]
call fcn.0046f750
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x14]
push str.Error__ld_ReadFile___during_CPluginEditor::UpdatePlugin___r_n
push edx
call fcn.00562ecb
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.0046f830
mov ecx, dword [ebp + 8]
push ecx
call fcn.005664c5
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.0056a100
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0046f820
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0056a100
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0056a100
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4b7962
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b79d6
jmp 0x4b79cd
push eax
call fcn.005664c5
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc