Function at 0x401100
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4045b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x358
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
call fcn.004016f0
add esp, 4
and eax, 0xff
test eax, eax
je 0x401144
mov eax, 1
jmp 0x4014b9
mov ecx, dword [0x4062e4]
add ecx, 0x600
mov dword [ebp - 0x348], ecx
mov byte [ebp - 0x340], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x33f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x220], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x228], 0
jmp 0x4011ac
mov eax, dword [ebp - 0x228]
add eax, 1
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xa
jge 0x4011d4
push 0xffff
push 0
call fcn.004022d0
add esp, 8
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x14]
mov word [edx + ecx*2 + 0x28], ax
jmp 0x40119d
lea eax, [ebp - 0x11c]
push eax
push 0x104
call fcn.004029d0
add esp, 8
mov byte [ebp - 0x340], 0x5c
push 0xa
lea ecx, [ebp - 0x33f]
push ecx
call fcn.00401af0
add esp, 8
push 0x406150
lea edx, [ebp - 0x340]
push edx
call fcn.00402340
add esp, 8
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00402340
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x11c]
push edx
call dword [0x42ecc4]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0
jne 0x40125f
xor eax, eax
jmp 0x4014b9
mov eax, dword [0x4062e4]
mov ecx, dword [eax + 0x5fc]
mov dword [ebp - 0x34c], ecx
mov edx, dword [ebp - 0x34c]
mov dword [ebp - 0x23c], edx
mov eax, dword [0x406144]
mov dword [ebp - 0x234], eax
mov ecx, dword [0x406148]
mov dword [ebp - 0x230], ecx
mov dx, word [0x40614c]
mov word [ebp - 0x22c], dx
lea eax, [ebp - 0x234]
push eax
call fcn.00402df0
add esp, 4
movsx ecx, byte [ebp - 0x230]
neg ecx
sbb ecx, ecx
neg ecx
mov byte [ebp - 0x18], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call sub.MSVCRT.dll_srand
add esp, 4
mov edx, dword [ebp - 0x18]
and edx, 0xff
test edx, edx
jne 0x4012fc
push 0x38d
push 0xa
call fcn.004022d0
add esp, 8
shl eax, 0xc
mov ecx, dword [ebp - 0x23c]
add ecx, eax
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x23c]
push edx
call fcn.004024a0
add esp, 4
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x348]
push edx
mov eax, dword [ebp - 0x224]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
test ecx, ecx
jne 0x40141d
mov dword [ebp - 4], 0
push 0xfa6
push 0x3f1
call fcn.004022d0
add esp, 8
mov dword [ebp - 0x368], eax
push 0xa000
mov edx, dword [0x42ecd0]
add edx, dword [ebp - 0x368]
push edx
mov eax, dword [ebp - 0x224]
add eax, dword [ebp - 0x34c]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
jmp 0x401399
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x224]
add ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x23c]
sub edx, dword [ebp - 0x34c]
mov dword [ebp - 0x358], edx
jmp 0x4013e1
mov eax, dword [ebp - 0x358]
sub eax, 4
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jle 0x40141d
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x350]
mov eax, dword [ebp - 0x354]
mov dword [eax], edx
ror dword [ebp - 0x350], 1
inc dword [ebp - 0x350]
mov ecx, dword [ebp - 0x354]
add ecx, 4
mov dword [ebp - 0x354], ecx
jmp 0x4013d2
push 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
push ecx
call fcn.00402530
add esp, 4
mov edx, dword [ebp - 0x344]
push edx
call dword [0x42ecc8]
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40149b
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x35c], eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00401df0
add esp, 4
jmp 0x4014b4
lea edx, [ebp - 0x11c]
push edx
push 0x406140
mov eax, dword [ebp + 8]
push eax
call dword [0x42e8b0]
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret