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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x126fc
call fcn.00431220
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x214]
lea ebx, [esi + 0x20c]
cmp eax, 2
mov dword [ebp - 0x18], edi
jb 0x41686a
mov al, byte [ebx]
push edi
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.00416e50
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
push fcn.00416c20
push 0x416c80
push 0x10
lea ecx, [ebp - 0x110]
push 0xc
push ecx
mov dword [ebp - 4], edi
call fcn.0043130a
mov eax, dword [ebx + 8]
mov byte [ebp - 4], 1
test eax, eax
mov dword [ebp - 0x14], edi
je 0x416842
lea edx, [ebp - 0x28]
mov ecx, ebx
push edx
call fcn.00416c70
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push eax
push ebx
push ecx
lea ecx, [ebp - 0x24]
call fcn.00416c70
mov edx, dword [eax]
lea ecx, [ebp - 0x24]
push edx
call fcn.00416d20
xor esi, esi
test edi, edi
jbe 0x4167fd
lea edi, [ebp - 0x110]
mov eax, dword [edi + 8]
test eax, eax
je 0x4167e4
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00416d80
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.00416cf0
mov eax, dword [ebp - 0x14]
inc esi
add edi, 0xc
cmp esi, eax
jb 0x4167bc
cmp esi, 0xf
jne 0x4167fa
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x5c]
push edx
call fcn.00416d80
mov edi, dword [ebp - 0x14]
jmp 0x416818
mov edi, dword [ebp - 0x14]
lea ecx, [esi + esi*2]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + ecx*4 - 0x110]
call fcn.00416cf0
cmp esi, edi
jne 0x416818
inc edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41678a
test edi, edi
jbe 0x41683f
lea edx, [edi + edi*2]
lea esi, [ebp + edx*4 - 0x110]
sub esi, 0xc
mov ecx, ebx
push esi
call fcn.00416d80
dec edi
jne 0x416831
mov esi, dword [ebp + 8]
push fcn.00416c20
push 0x10
lea eax, [ebp - 0x110]
push 0xc
push eax
mov byte [ebp - 4], 0
call fcn.0043138c
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00416c20
xor eax, eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x214]
test ecx, ecx
jbe 0x41692f
mov ecx, dword [esi + 0x210]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
mov ecx, dword [edx + 0xc]
lea edi, [ecx + eax]
cmp edi, 0x124f8
jae 0x41692f
mov si, word [esi + 0x208]
mov di, word [edx + 8]
cmp si, di
mov dword [ebp - 0x28], esi
jne 0x416914
lea esi, [edx + 0x10]
mov edx, ecx
lea edi, [ebp + eax - 0x1270c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ecx + 0xc]
add eax, esi
inc edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov word [eax + 0x208], dx
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebx + 8]
mov esi, dword [ebp + 8]
add esp, 4
dec eax
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
jmp 0x416876
jbe 0x41692c
mov edx, dword [ebx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
jmp 0x4168f9
mov esi, dword [ebp + 8]
test eax, eax
jle 0x4169e9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x416959
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
push 0x437ad8
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x416985
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push esi
push eax
lea ecx, [ebp - 0x1270c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [ebp - 0x50]
push edx
push edi
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 0x1c
test eax, eax
jne 0x4169e6
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ecx + 0x200]
jne 0x4169cb
mov dword [ebp - 0x18], 8
mov esi, ecx
jmp 0x4169f3
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x18], 8
jne 0x416aee
call fcn.00419150
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push esi
mov ecx, eax
call fcn.0041b4b0
mov edi, eax
test edi, edi
jne 0x416a2e
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00419150
lea edx, [esi + 0x1f8]
mov ecx, eax
push edx
push edx
push edx
push edi
call fcn.0041b370
call fcn.00419150
push edi
mov ecx, eax
call fcn.0041b350
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x215], 0x24
jne 0x416aee
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
mov byte [ebp + ecx - 0x215], al
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x416b02
call fcn.00419150
lea edx, [ebp - 0x214]
mov ecx, eax
push edx
call fcn.0041b550
test eax, eax
jne 0x416add
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.00410690
jmp 0x416aeb
lea ecx, [ebp - 0x214]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x214]
push edx
jmp 0x416ae4