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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor eax, eax
cmp dword [ebp + 0x10], eax
push esi
push edi
mov ebx, ecx
jne 0x426807
cmp dword [ebp + 0x14], eax
je 0x426a5c
cmp dword [ebx + 0x2087], eax
je 0x426a5c
push 0x4adb60
mov edi, str.Peidef.bin
push edi
call fcn.0047a909
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x426870
push esi
push 1
push dword [ebx + 0x209b]
push dword [ebx + 0xd207]
call fcn.00479f37
push esi
call fcn.00478828
movzx eax, byte [ebx + 0x209f]
push edi
push dword [ebx + 0x20a0]
push eax
push dword [0x4cca10]
call fcn.0044b160
add esp, 0x24
push 0x4adb3c
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x14], 0
je 0x42687d
xor eax, eax
jmp 0x426a5f
mov eax, dword [0x4ccb0c]
mov eax, dword [eax + 0x54]
mov ecx, dword [eax + 0xc]
call fcn.004219db
mov ecx, dword [0x4ccb0c]
mov ecx, dword [ecx + 0x54]
mov dl, byte [ebx + 0x209f]
mov ecx, dword [ecx + 0xc]
mov byte [ebp + 0x10], dl
lea edx, [ebp - 4]
push edx
lea edx, [ebp + 0x10]
push edx
add ecx, 0x12a
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
push eax
jmp 0x426a46
push 1
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [0x4cca10]
call fcn.0044ab30
add esp, 0x14
test eax, eax
jne 0x426876
push dword [ebp + 0x14]
call fcn.00476994
xor edi, edi
cmp dword [ebp + 8], edi
pop ecx
mov esi, eax
je 0x426a66
push 1
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [0x4cca10]
call fcn.0044b110
add esp, 0x14
test eax, eax
jne 0x426a66
cmp dword [ebp + 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
jbe 0x426983
push 6
pop edi
push 4
lea eax, [esi + edi - 6]
push str._DEF
push eax
call fcn.00476a57
add esp, 0xc
test eax, eax
jne 0x426951
cmp dword [ebp - 0x10], 0
movzx eax, word [edi + esi - 2]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jne 0x426983
push 4
lea eax, [esi + edi - 6]
push str._MFG
push eax
call fcn.00476a57
add esp, 0xc
test eax, eax
jne 0x42697a
cmp dword [ebp - 8], 0
movzx eax, word [edi + esi - 2]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
jne 0x426983
inc edi
lea eax, [edi - 6]
cmp eax, dword [ebp + 0x14]
jb 0x426928
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x2097]
jne 0x426a66
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebx + 0x2093]
jne 0x426a66
push eax
mov eax, dword [ebx + 0x208f]
add eax, dword [ebx + 0xd207]
push eax
mov eax, dword [ebp - 8]
add eax, esi
push eax
call fcn.004765e0
mov eax, dword [ebx + 0x208b]
add eax, dword [ebx + 0xd207]
push dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
add eax, esi
push eax
call fcn.004765e0
push 0x4adb60
mov edi, str.Peidef.bin
push edi
call fcn.0047a909
add esp, 0x20
test eax, eax
mov dword [ebp - 0x14], eax
je 0x426a66
push eax
push 1
push dword [ebp + 0x14]
push esi
call fcn.00479f37
push esi
call fcn.00478435
push dword [ebp - 0x14]
call fcn.00478828
push edi
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [0x4cca10]
call fcn.0044b160
add esp, 0x28
push 0x4adb3c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
jne 0x426876
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x18]
mov esi, 0x4adb08
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00421008
test eax, eax
je 0x4268c1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call fcn.00478435
pop ecx
jmp 0x426876