Function at 0x402dd6
Capabilities:
Copy file
Delete file
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
xor ebx, ebx
push 0x28
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.004033e0
push 0x1000
call fcn.00403a5b
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], ebx
jne 0x402e25
mov dword [ebp - 4], 0xfffffff9
jmp 0x4030aa
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x402e4e
or dword [ebp - 4], eax
jmp 0x4030aa
lea ecx, [ebp - 0x2c]
push ebx
push ecx
push 0xffe
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402e6f
or dword [ebp - 4], 0xffffffff
jmp 0x4030a1
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov esi, str.__t__r_n
lea edi, [ebp - 0x10]
mov byte [ecx + eax], bl
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + eax + 1], bl
mov ecx, dword [0x40b82c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
movsb byte es:[edi], byte [esi]
call fcn.004036db
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x4030a1
lea edi, [ebp - 0x60]
cmp dword [ebp - 4], ebx
jl 0x4030a1
push str.image
push esi
call fcn.00408be0
pop ecx
test eax, eax
pop ecx
jne 0x402f12
push esi
call fcn.00403660
pop ecx
lea esi, [esi + eax + 1]
mov al, byte [esi]
cmp al, bl
je 0x402edf
cmp al, 0x20
jge 0x402edf
inc esi
jmp 0x402ed2
cmp esi, ebx
je 0x402f06
lea eax, [ebp + 8]
push eax
push esi
call fcn.004036db
pop ecx
cmp eax, ebx
pop ecx
je 0x402f06
cmp dword [ebp - 0x20], 0xa
jge 0x402f06
inc dword [ebp - 0x20]
mov dword [edi], eax
add edi, 4
jmp 0x40308b
mov dword [ebp - 4], 0xfffffff1
jmp 0x40308b
push 0x40b820
push esi
call fcn.00408be0
pop ecx
test eax, eax
pop ecx
jne 0x402f5f
push esi
call fcn.00403660
pop ecx
lea esi, [esi + eax + 1]
mov al, byte [esi]
cmp al, bl
je 0x402f3b
cmp al, 0x20
jge 0x402f3b
inc esi
jmp 0x402f2e
cmp esi, ebx
je 0x40308b
lea eax, [ebp + 8]
push eax
push esi
call fcn.004036db
pop ecx
cmp eax, ebx
pop ecx
je 0x40308b
mov dword [ebp - 8], eax
jmp 0x40308b
push str.title
push esi
call fcn.00408be0
pop ecx
test eax, eax
pop ecx
jne 0x402fac
push esi
call fcn.00403660
pop ecx
lea esi, [esi + eax + 1]
mov al, byte [esi]
cmp al, bl
je 0x402f88
cmp al, 0x20
jge 0x402f88
inc esi
jmp 0x402f7b
cmp esi, ebx
je 0x40308b
lea eax, [ebp + 8]
push eax
push esi
call fcn.004036db
pop ecx
cmp eax, ebx
pop ecx
je 0x40308b
mov dword [ebp - 0x28], eax
jmp 0x40308b
push str.message
push esi
call fcn.00408be0
pop ecx
test eax, eax
pop ecx
jne 0x402ff9
push esi
call fcn.00403660
pop ecx
lea esi, [esi + eax + 1]
mov al, byte [esi]
cmp al, bl
je 0x402fd5
cmp al, 0x20
jge 0x402fd5
inc esi
jmp 0x402fc8
cmp esi, ebx
je 0x40308b
lea eax, [ebp + 8]
push eax
push esi
call fcn.004036db
pop ecx
cmp eax, ebx
pop ecx
je 0x40308b
mov dword [ebp - 0x34], eax
jmp 0x40308b
push str.lastmessage
push esi
call fcn.00408be0
pop ecx
test eax, eax
pop ecx
jne 0x40303b
push esi
call fcn.00403660
pop ecx
lea esi, [esi + eax + 1]
mov al, byte [esi]
cmp al, bl
je 0x403022
cmp al, 0x20
jge 0x403022
inc esi
jmp 0x403015
cmp esi, ebx
je 0x40308b
lea eax, [ebp + 8]
push eax
push esi
call fcn.004036db
pop ecx
cmp eax, ebx
pop ecx
je 0x40308b
mov dword [ebp - 0x14], eax
jmp 0x40308b
push 0x40b800
push esi
call fcn.00408be0
pop ecx
test eax, eax
pop ecx
jne 0x403084
push esi
call fcn.00403660
pop ecx
lea esi, [esi + eax + 1]
mov al, byte [esi]
cmp al, bl
je 0x403064
cmp al, 0x20
jge 0x403064
inc esi
jmp 0x403057
cmp esi, ebx
je 0x40308b
lea eax, [ebp + 8]
push eax
push esi
call fcn.004036db
pop ecx
cmp eax, ebx
pop ecx
je 0x40308b
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40308b
mov dword [ebp - 4], 0xfffffffe
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.004036db
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x402ead
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
jl 0x4032c4
cmp dword [ebp - 8], ebx
jne 0x4030c2
mov dword [ebp - 4], 0xfffffff2
cmp dword [ebp - 4], ebx
jl 0x4032c4
lea eax, [ebp - 0x1a0]
push 0x100
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea eax, [ebp - 0x1a0]
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4030ff
mov dword [ebp - 4], 0xfffffff8
jmp 0x4032c4
push 0x80
mov dword [ebp - 0x1c], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x40312c
mov dword [ebp - 4], 0xfffffff8
cmp dword [ebp - 4], ebx
jl 0x4032c4
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov dword [ebp + 0xc], ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0xa0]
push str.FLOPPY_IMAGE_d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xa0]
push ebx
push ebx
push ebx
push eax
push 0xa
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x403172
inc dword [ebp + 0xc]
jmp 0x403144
lea eax, [ebp - 0x60]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
jge 0x403215
lea eax, [ebp - 0x38]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], ebx
push dword [eax]
call fcn.00402d47
add esp, 0xc
test eax, eax
je 0x4031fe
push dword [ebp - 0x38]
push dword [ebp + 0xc]
call fcn.0040299d
pop ecx
test eax, eax
pop ecx
je 0x4031ec
push dword [ebp - 0x24]
lea eax, [ebp - 0xa0]
push str.FLOPPY_IMAGE_d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xa0]
push dword [ebp - 0x38]
push dword [ebp + 0xc]
push ebx
push eax
push 0xa
push dword [ebp + 8]
call esi
test eax, eax
je 0x4031f3
inc dword [ebp - 0x24]
jmp 0x4031f3
mov dword [ebp - 4], 0xffffffef
push dword [ebp + 0xc]
call fcn.00403907
pop ecx
jmp 0x403205
mov dword [ebp - 4], 0xfffffff3
inc dword [ebp - 0x30]
add dword [ebp - 0x10], 4
cmp dword [ebp - 4], ebx
jge 0x40317e
cmp dword [ebp - 0x28], ebx
je 0x403235
push dword [ebp - 0x28]
call fcn.00403660
pop ecx
inc eax
push eax
push dword [ebp - 0x28]
push ebx
push str.CAPTION
push 0xa
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x14], ebx
je 0x403255
push dword [ebp - 0x14]
call fcn.00403660
pop ecx
inc eax
push eax
push dword [ebp - 0x14]
push ebx
push str.LAST_MESSAGE
push 0xa
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x34], ebx
je 0x40329e
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x34]
call fcn.00402d47
add esp, 0xc
test eax, eax
je 0x403297
mov eax, dword [ebp - 0x10]
inc eax
push eax
push dword [ebp + 0xc]
push ebx
push str.MESSAGE
push 0xa
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
call fcn.00403907
pop ecx
jmp 0x40329e
mov dword [ebp - 4], 0xfffffff4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x4032b3
mov dword [ebp - 4], 0xfffffff8
cmp dword [ebp - 4], ebx
jl 0x4032c4
cmp dword [ebp - 0x24], ebx
jne 0x4032c4
mov dword [ebp - 4], 0xfffffff7
cmp dword [ebp - 0x18], ebx
je 0x4032d2
push dword [ebp - 0x18]
call fcn.00403907
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x4032e5
cmp dword [ebp - 4], ebx
jge 0x4032e5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret