Function at 0x419858
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov eax, 0x4c3f14
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.00479eb8
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x60], 0x14
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x54]
mov eax, dword [esi + 0x14]
mov edx, dword [ebp + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0xc]
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
inc dword [ebp - 0x54]
lea eax, [esi + 0x2028]
call fcn.00488e28
dec dword [ebp - 0x54]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x60], 8
mov word [ebp - 0x60], 0x20
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
inc dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004336ac
lea eax, [ebp - 0x10]
mov eax, dword [eax]
call fcn.0043350c
xor edx, edx
mov dl, al
lea eax, [ebp - 0x10]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x54]
call fcn.00488dd0
pop ecx
test cl, cl
je 0x41993e
mov word [ebp - 0x60], 0x2c
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
inc dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004336ac
lea eax, [ebp - 0x14]
mov eax, dword [eax]
call fcn.00433530
dec dword [ebp - 0x54]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x60], 0x38
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x18]
inc dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004336e0
lea eax, [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x1c]
inc dword [ebp - 0x54]
call fcn.0048901c
lea eax, [ebp - 0x1c]
push eax
mov edx, str.SIDEBAR.EXE
lea eax, [ebp - 0x20]
call fcn.00488be4
inc dword [ebp - 0x54]
lea edx, [ebp - 0x20]
pop eax
call fcn.00488eb4
push eax
dec dword [ebp - 0x54]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00488dd0
pop ecx
test cl, cl
je 0x419a56
mov word [ebp - 0x60], 0x44
xor eax, eax
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
push edx
inc dword [ebp - 0x54]
cmp dword [ebp - 4], 0
je 0x4199e1
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 4]
jmp 0x4199e3
xor ecx, ecx
add ecx, 0xfffffffd
lea eax, [ebp - 4]
mov edx, 1
call fcn.0048912c
lea eax, [ebp - 0x24]
push eax
mov edx, 0x4c398f
lea eax, [ebp - 0x28]
call fcn.00488be4
inc dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
inc dword [ebp - 0x54]
lea edx, [ebp - 0x28]
pop eax
call fcn.00488e28
lea edx, [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.00488e00
dec dword [ebp - 0x54]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x60], 0x50
xor ecx, ecx
xor eax, eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x30]
inc dword [ebp - 0x54]
mov word [ebp - 0x60], 8
mov word [ebp - 0x60], 0x5c
mov dword [ebp - 0x30], eax
inc dword [ebp - 0x54]
mov eax, dword [esi + 0x14]
mov edx, dword [ebp + 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
inc dword [ebp - 0x54]
lea eax, [esi + 0x2020]
call fcn.00488e28
lea edx, [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.00488e00
dec dword [ebp - 0x54]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00488dd0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
cmp dword [ebp - 4], 0
je 0x419ae7
mov ecx, dword [ebp - 4]
jmp 0x419aec
mov ecx, 0x4c3993
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x7c], eax
mov word [ebp - 0x60], 8
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x419b5b
call sub.KERNEL32.DLL_GetLastError
push eax
cmp dword [ebp - 4], 0
je 0x419b12
mov eax, dword [ebp - 4]
jmp 0x419b17
mov eax, 0x4c39a9
push eax
push 0x4c3994
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 0x10
dec dword [ebp - 0x54]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebp - 0x70]
mov dword fs:[0], ecx
jmp 0x419ee7
cmp dword [ebp - 4], 0
je 0x419b66
mov eax, dword [ebp - 4]
jmp 0x419b6b
mov eax, 0x4c39aa
mov edi, eax
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x114]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x14]
pop esi
je 0x419ce1
push 0x14
push 0
lea edx, [ebp - 0x94]
push edx
call fcn.004798f8
mov dword [ebp - 0x94], 9
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], edi
lea eax, [ebp - 0x94]
push 0x14
push eax
push esi
call fcn.00419ef0
add esp, 0xc
test eax, eax
jne 0x419c0b
cmp dword [ebp - 4], 0
je 0x419bed
mov edx, dword [ebp - 4]
jmp 0x419bf2
mov edx, 0x4c39d0
push edx
push 0x4c39ab
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 0xc
jmp 0x419ce1
push 0x14
mov ecx, dword [ebp - 0x74]
push ecx
push esi
call fcn.00419f78
add esp, 0xc
test eax, eax
jne 0x419c48
cmp dword [ebp - 4], 0
je 0x419c29
mov eax, dword [ebp - 4]
jmp 0x419c2e
mov eax, 0x4c39f6
push eax
push 0x4c39d1
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 0xc
jmp 0x419ce1
mov eax, dword [ebp - 0x74]
cmp dword [eax], 8
jne 0x419c66
push 0x4c39f7
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 8
jmp 0x419ce1
mov ebx, dword [eax + 4]
push ebx
mov eax, dword [ebp - 0x74]
push eax
push esi
call fcn.00419f78
add esp, 0xc
test eax, eax
jne 0x419c91
push 0x4c3a19
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 8
jmp 0x419ce1
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov word [ebp - 0x60], 8
push 0
lea eax, [ebp - 0x80]
push eax
push ebx
mov edx, dword [ebp - 0x74]
push edx
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.KERNEL32.DLL_WriteFile
cmp ebx, dword [ebp - 0x80]
je 0x419cd0
mov eax, dword [ebp - 0x80]
push eax
push ebx
push 0x4c3a30
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 0x10
jmp 0x419ce1
add dword [ebp - 0x78], ebx
add edi, ebx
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [ebp + 0x14]
jne 0x419ba0
mov eax, dword [ebp - 0x7c]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x78]
cmp edx, dword [ebp + 0x14]
jne 0x419e8d
cmp dword [ebp - 8], 0
je 0x419d01
mov ecx, dword [ebp - 8]
jmp 0x419d06
mov ecx, 0x4c3a6a
push ecx
push 0x4c3a57
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
mov word [ebp - 0x60], 0x68
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x38], edx
lea edx, [ebp - 0x38]
inc dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004336e0
lea eax, [ebp - 0x38]
xor edx, edx
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x3c]
inc dword [ebp - 0x54]
call fcn.0048901c
lea eax, [ebp - 0x3c]
push eax
mov edx, str.SIDEBAR.DAT
lea eax, [ebp - 0x40]
call fcn.00488be4
inc dword [ebp - 0x54]
lea edx, [ebp - 0x40]
pop eax
call fcn.00488eb4
push eax
dec dword [ebp - 0x54]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00488dd0
pop ecx
test cl, cl
je 0x419db0
push 0
push 0
push 0x7e8
mov eax, dword [esi + 0x10]
push eax
call sub.USER32.DLL_SendMessageA
jmp 0x419ebd
mov word [ebp - 0x60], 0x74
xor edx, edx
mov dword [ebp - 0x44], edx
lea edx, [ebp - 0x44]
inc dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004336e0
lea eax, [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x48], edx
lea edx, [ebp - 0x48]
inc dword [ebp - 0x54]
call fcn.00488f94
lea eax, [ebp - 0x48]
push eax
mov edx, 0x4c3a77
lea eax, [ebp - 0x4c]
call fcn.00488be4
inc dword [ebp - 0x54]
lea edx, [ebp - 0x4c]
pop eax
call fcn.00488ecc
push eax
dec dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00488dd0
pop ecx
test cl, cl
je 0x419ebd
push 0
cmp dword [ebp - 8], 0
je 0x419e40
mov eax, dword [ebp - 8]
jmp 0x419e45
mov eax, 0x4c3a84
push eax
cmp dword [ebp - 4], 0
je 0x419e51
mov edx, dword [ebp - 4]
jmp 0x419e56
mov edx, 0x4c3a83
push edx
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0x419ebd
call sub.KERNEL32.DLL_GetLastError
push eax
cmp dword [ebp - 8], 0
je 0x419e71
mov eax, dword [ebp - 8]
jmp 0x419e76
mov eax, 0x4c3a9a
push eax
push 0x4c3a85
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 0x10
jmp 0x419ebd
mov ecx, dword [ebp + 0x14]
mov edx, dword [0x4ea064]
push ecx
mov eax, dword [ebp - 0x78]
push eax
push 0x4c3a9b
push edx
call fcn.0040f424
add esp, 0x10
mov eax, dword [ebp - 4]
call fcn.00488b2c
test al, al
jne 0x419ebd
mov eax, dword [ebp - 4]
call fcn.00488b2c
dec dword [ebp - 0x54]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x54]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebp - 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret