Function at 0x4a01a0
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 0x560ad6
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.0049e9b0
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0049e9b0
mov eax, dword [0x5c2a74]
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.004a0040
cmp eax, edi
jne 0x4a0250
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4a0244
push eax
call fcn.00542796
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4a035e
or ebx, 0xffffffff
lea ecx, [ebp + 0x10]
push ebx
push ecx
mov ecx, esi
call fcn.004a0040
cmp eax, edi
jne 0x4a028f
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4a035b
jmp 0x4a0352
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x4a0263
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 0x4a0263
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 0x4a036e
lea ecx, [ebp - 0x138]
call fcn.0045eaa0
mov eax, dword [0x5c2a74]
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.0053afda
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push edx
call fcn.0045eb80
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.005421be
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4a035b
push eax
call fcn.00542796
add esp, 4
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x4a09f6
jmp 0x4a09ed
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 0x4a0424
lea ecx, [ebp - 0x138]
call fcn.0045eaa0
mov ecx, dword [0x5c2a74]
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.0053afda
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.0045eb80
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.005421be
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a040d
push eax
call fcn.00542796
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a09f6
jmp 0x4a09ed
lea ecx, [ebx + 1]
push ecx
call fcn.0054276d
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 0x4a08ee
cmp dword [ebp - 0x28], ebx
jne 0x4a08ee
mov esi, dword [ebp + 8]
push ebx
push 0x46
push esi
call fcn.00527bb0
add esp, 0xc
test eax, eax
jne 0x4a0503
lea ecx, [ebp - 0x138]
call fcn.0045eaa0
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xb
call fcn.0045eb80
push esi
call fcn.00542796
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a04ec
push eax
call fcn.00542796
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a09f6
jmp 0x4a09ed
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 0x4a05b4
test eax, eax
jne 0x4a059b
lea ecx, [ebp - 0x138]
call fcn.0045eaa0
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xc
call fcn.0045eb80
mov eax, dword [ebp + 8]
push eax
call fcn.00542796
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a0584
push eax
call fcn.00542796
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a09f6
jmp 0x4a09ed
mov ecx, dword [ebp + 8]
inc eax
sub ecx, eax
add ecx, ebx
push ecx
push 0x46
push eax
call fcn.00527bb0
add esp, 0xc
jmp 0x4a0503
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x20]
cmp byte [eax], 0
jne 0x4a05c2
inc eax
jmp 0x4a05ba
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.00527bb0
add esp, 0xc
test eax, eax
jne 0x4a066e
lea ecx, [ebp - 0x138]
call fcn.0045eaa0
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xd
call fcn.0045eb80
mov edx, dword [ebp + 8]
push edx
call fcn.00542796
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a0657
push eax
call fcn.00542796
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a09f6
jmp 0x4a09ed
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 0x4a071f
test eax, eax
jne 0x4a0706
lea ecx, [ebp - 0x138]
call fcn.0045eaa0
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xe
call fcn.0045eb80
mov eax, dword [ebp + 8]
push eax
call fcn.00542796
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a06ef
push eax
call fcn.00542796
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a09f6
jmp 0x4a09ed
mov ecx, dword [ebp + 8]
inc eax
sub ecx, eax
add ecx, ebx
push ecx
push 0x4d
push eax
call fcn.00527bb0
add esp, 0xc
jmp 0x4a066e
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x28]
cmp byte [eax], 0
jne 0x4a072d
inc eax
jmp 0x4a0725
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 0x4a0812
lea ecx, [ebp - 0x138]
call fcn.0045eaa0
mov edx, dword [0x5c2a74]
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.0053afda
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x138]
call fcn.0045eb80
mov edx, dword [ebp + 8]
push edx
call fcn.00542796
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.005421be
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a07fb
push eax
call fcn.00542796
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a09f6
jmp 0x4a09ed
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 0x4a0886
lea ecx, [ebp - 0x138]
call fcn.0045eaa0
mov ecx, dword [0x5c2a74]
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.0053afda
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.0045eb80
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x11
call fcn.005421be
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00542796
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a08c2
push eax
call fcn.00542796
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a08d9
push eax
call fcn.00542796
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.0045eaa0
mov ecx, dword [0x5c2a74]
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.0053afda
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.0045eb80
mov ecx, dword [ebp + 8]
push ecx
call fcn.00542796
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.005421be
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.0045eb70
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.005421be
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4a0982
push eax
call fcn.00542796
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4a09f6
jmp 0x4a09ed
push eax
call fcn.00542796
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