Function at 0x640180
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72490a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
cmp dword [esi + 0x70], eax
jne 0x6401c4
xor esi, esi
jmp 0x640752
lea ecx, [ebp - 0x18]
mov word [ebp - 0x10], 0xfeff
call fcn.00429050
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00429050
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00429050
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00429050
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00429100
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x78a158
lea ecx, [ebp + 8]
call fcn.00429100
push eax
call fcn.006b57a3
mov edi, eax
add esp, 8
test edi, edi
je 0x640720
push edi
push 1
lea eax, [ebp - 0x10]
push 2
push eax
call fcn.006b5539
push edi
call fcn.006b5369
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x6404b2
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x640720
xor ebx, ebx
call fcn.00466800
mov edi, eax
test edi, edi
js 0x6406fa
jmp 0x640270
mov eax, dword [esi + 0x70]
imul ecx, edi, 0xe0
mov eax, dword [eax]
add ecx, 0x20
add eax, ecx
lea ecx, [ebp - 0x14]
push eax
call fcn.004289a0
inc ebx
lea eax, [ebp - 0x1c]
push ebx
push str.File_d
push eax
mov dword [ebp - 0x28], ebx
call fcn.0042a0e0
add esp, 0xc
lea eax, [ebp - 0x38]
lea ecx, [ebp + 8]
push 2
push eax
call fcn.004299f0
mov esi, eax
push 2
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call fcn.004299f0
push esi
push eax
mov byte [ebp - 4], 6
call fcn.00429290
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
mov bl, al
call fcn.00428810
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00428810
lea eax, [ebp + 8]
test bl, bl
je 0x640325
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.00428690
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00429100
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429100
push eax
push 0x754538
mov byte [ebp - 4], 4
call fcn.005b8cb0
add esp, 0x10
jmp 0x640494
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.005b5ff0
add esp, 8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.004289a0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00428810
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005b5ff0
add esp, 8
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.004289a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00428810
lea ecx, [ebp - 0x24]
call fcn.004290e0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004290e0
cmp esi, eax
jl 0x6403c8
lea ecx, [ebp - 0x18]
call fcn.004290e0
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.004299f0
mov ebx, dword [ebp - 0x20]
mov ecx, eax
or ebx, 1
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00429100
push eax
lea ecx, [ebp - 0x18]
call fcn.00429150
test eax, eax
jne 0x6403cb
mov byte [ebp + 0xf], al
jmp 0x6403cf
mov ebx, dword [ebp - 0x20]
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 4
test bl, 1
je 0x6403e9
and ebx, 0xfffffffe
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x20], ebx
call fcn.00428810
cmp byte [ebp + 0xf], 0
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
je 0x640438
call fcn.00428690
push 2
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x14]
call fcn.004297b0
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00429100
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429100
push eax
push 0x754538
mov byte [ebp - 4], 0xd
call fcn.005b8cb0
lea ecx, [ebp - 0x48]
jmp 0x640488
call fcn.00428690
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.004290e0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004290e0
sub esi, eax
lea ecx, [ebp - 0x14]
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.00429900
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.00429100
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429100
push eax
push 0x754538
mov byte [ebp - 4], 0x10
call fcn.005b8cb0
lea ecx, [ebp - 0x4c]
add esp, 0x10
mov byte [ebp - 4], 4
call fcn.00428810
mov esi, dword [ebp - 0x30]
push edi
mov ecx, dword [esi + 0x6c]
call fcn.00466900
mov ebx, dword [ebp - 0x28]
mov edi, eax
test edi, edi
jns 0x640270
jmp 0x6406fa
mov eax, dword [esi + 0x70]
xor ebx, ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
test eax, eax
jle 0x6406fa
xor edi, edi
mov eax, dword [esi + 0x70]
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
add eax, 0x20
add eax, edi
push eax
call fcn.004289a0
inc ebx
lea eax, [ebp - 0x1c]
push ebx
push str.File_d
push eax
mov dword [ebp - 0x28], ebx
call fcn.0042a0e0
add esp, 0xc
lea eax, [ebp - 0x48]
lea ecx, [ebp + 8]
push 2
push eax
call fcn.004299f0
mov esi, eax
push 2
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x14]
call fcn.004299f0
push esi
push eax
mov byte [ebp - 4], 0x12
call fcn.00429290
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
mov bl, al
call fcn.00428810
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00428810
lea eax, [ebp + 8]
test bl, bl
je 0x640576
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.00428690
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x13
call fcn.00429100
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429100
push eax
push 0x754538
mov byte [ebp - 4], 4
call fcn.005b8cb0
add esp, 0x10
jmp 0x6406e5
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005b5ff0
add esp, 8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x14
call fcn.004289a0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00428810
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005b5ff0
add esp, 8
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x15
call fcn.004289a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00428810
lea ecx, [ebp - 0x24]
call fcn.004290e0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004290e0
cmp esi, eax
jl 0x640619
lea ecx, [ebp - 0x18]
call fcn.004290e0
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004299f0
mov ebx, dword [ebp - 0x20]
mov ecx, eax
or ebx, 2
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00429100
push eax
lea ecx, [ebp - 0x18]
call fcn.00429150
test eax, eax
jne 0x64061c
mov byte [ebp + 0xf], al
jmp 0x640620
mov ebx, dword [ebp - 0x20]
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 4
test bl, 2
je 0x64063a
and ebx, 0xfffffffd
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], ebx
call fcn.00428810
cmp byte [ebp + 0xf], 0
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
je 0x640689
call fcn.00428690
push 2
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x14]
call fcn.004297b0
mov byte [ebp - 4], 0x18
mov ecx, eax
call fcn.00429100
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429100
push eax
push 0x754538
mov byte [ebp - 4], 0x19
call fcn.005b8cb0
lea ecx, [ebp - 0x38]
jmp 0x6406d9
call fcn.00428690
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1a
call fcn.004290e0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004290e0
sub esi, eax
lea ecx, [ebp - 0x14]
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.00429900
mov byte [ebp - 4], 0x1b
mov ecx, eax
call fcn.00429100
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429100
push eax
push 0x754538
mov byte [ebp - 4], 0x1c
call fcn.005b8cb0
lea ecx, [ebp - 0x34]
add esp, 0x10
mov byte [ebp - 4], 4
call fcn.00428810
mov ebx, dword [ebp - 0x28]
add edi, 0xe0
mov esi, dword [ebp - 0x30]
cmp ebx, dword [ebp - 0x50]
jl 0x6404c7
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00428690
push ebx
push str.NumberOfEntries
push 0x754538
call fcn.005b8c00
add esp, 0x10
mov esi, 1
jmp 0x640722
xor esi, esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00428810
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00428810
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00428810
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00428810
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8