Function at 0x4994f0
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 0x5559f6
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.00497d00
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00497d00
mov eax, dword [0x5b5ecc]
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.00499390
cmp eax, edi
jne 0x4995a0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x499594
push eax
call fcn.005380ca
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4996ae
or ebx, 0xffffffff
lea ecx, [ebp + 0x10]
push ebx
push ecx
mov ecx, esi
call fcn.00499390
cmp eax, edi
jne 0x4995df
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4996ab
jmp 0x4996a2
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x4995b3
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 0x4995b3
mov edx, dword [ebp + 0xc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
jne 0x4996be
lea ecx, [ebp - 0x138]
call fcn.00459300
mov eax, dword [0x5b5ecc]
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.0053091a
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push edx
call fcn.004593e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00537b04
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4996ab
push eax
call fcn.005380ca
add esp, 4
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x499d46
jmp 0x499d3d
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 0x499774
lea ecx, [ebp - 0x138]
call fcn.00459300
mov ecx, dword [0x5b5ecc]
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.0053091a
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.004593e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.00537b04
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x49975d
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499d46
jmp 0x499d3d
lea ecx, [ebx + 1]
push ecx
call fcn.005380a1
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 0x499c3e
cmp dword [ebp - 0x28], ebx
jne 0x499c3e
mov esi, dword [ebp + 8]
push ebx
push 0x46
push esi
call fcn.0051d590
add esp, 0xc
test eax, eax
jne 0x499853
lea ecx, [ebp - 0x138]
call fcn.00459300
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xb
call fcn.004593e0
push esi
call fcn.005380ca
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x49983c
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499d46
jmp 0x499d3d
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 0x499904
test eax, eax
jne 0x4998eb
lea ecx, [ebp - 0x138]
call fcn.00459300
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xc
call fcn.004593e0
mov eax, dword [ebp + 8]
push eax
call fcn.005380ca
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4998d4
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499d46
jmp 0x499d3d
mov ecx, dword [ebp + 8]
inc eax
sub ecx, eax
add ecx, ebx
push ecx
push 0x46
push eax
call fcn.0051d590
add esp, 0xc
jmp 0x499853
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x20]
cmp byte [eax], 0
jne 0x499912
inc eax
jmp 0x49990a
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.0051d590
add esp, 0xc
test eax, eax
jne 0x4999be
lea ecx, [ebp - 0x138]
call fcn.00459300
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xd
call fcn.004593e0
mov edx, dword [ebp + 8]
push edx
call fcn.005380ca
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x4999a7
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499d46
jmp 0x499d3d
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 0x499a6f
test eax, eax
jne 0x499a56
lea ecx, [ebp - 0x138]
call fcn.00459300
push 1
push str.Wrong_plugin_format_error_in_CPluginEditor::UpdatePlugin___r_n
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xe
call fcn.004593e0
mov eax, dword [ebp + 8]
push eax
call fcn.005380ca
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x499a3f
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499d46
jmp 0x499d3d
mov ecx, dword [ebp + 8]
inc eax
sub ecx, eax
add ecx, ebx
push ecx
push 0x4d
push eax
call fcn.0051d590
add esp, 0xc
jmp 0x4999be
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x28]
cmp byte [eax], 0
jne 0x499a7d
inc eax
jmp 0x499a75
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 0x499b62
lea ecx, [ebp - 0x138]
call fcn.00459300
mov edx, dword [0x5b5ecc]
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.0053091a
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x138]
call fcn.004593e0
mov edx, dword [ebp + 8]
push edx
call fcn.005380ca
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.00537b04
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x499b4b
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499d46
jmp 0x499d3d
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 0x499bd6
lea ecx, [ebp - 0x138]
call fcn.00459300
mov ecx, dword [0x5b5ecc]
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.0053091a
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.004593e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x11
call fcn.00537b04
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.005380ca
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x499c12
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499c29
push eax
call fcn.005380ca
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.00459300
mov ecx, dword [0x5b5ecc]
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.0053091a
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x138]
push 1
push eax
call fcn.004593e0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005380ca
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00537b04
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call fcn.004593d0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00537b04
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test eax, eax
je 0x499cd2
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x499d46
jmp 0x499d3d
push eax
call fcn.005380ca
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