Function at 0x407690
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a4
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x3a0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
push edi
mov edi, dword [esi + 0x138]
test edi, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x407784
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407770
mov ecx, dword [esp + 0x14]
call fcn.00427690
test al, al
mov byte [esp + 0xf], al
je 0x40774c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40774c
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x24]
push edx
push 2
push 0x44a
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x424530
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x407746
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x407748
mov al, 1
and byte [esp + 0xf], al
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0xf], 0
jne 0x40777a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [0x48d518], 0x200000
mov dword [esi + 0x138], 0
mov eax, dword [esi + 0x13c]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x407969
mov edx, dword [esi + 0xf0]
cmp dword [esi + 0xe8], 0
mov ecx, dword [esi + 0xf4]
push 0
push 0x8000080
push 2
push 0
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0xec]
mov dword [esp + 0x4c], edx
setne dl
cmp dword [esi + 0xe4], 0
push 1
mov dword [esp + 0x34], ecx
push 0x40000000
setne cl
push eax
mov byte [esp + 0x50], dl
mov byte [esp + 0x54], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x40794f
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0x30]
test esi, esi
jne 0x407812
lea eax, [esp + 0x48]
mov esi, eax
mov dword [esp + 0x44], eax
call fcn.004186e0
push ebx
mov edi, str._System_Information__r_n_r_n
call fcn.00416f60
add esp, 4
test al, al
je 0x407910
push ebx
push 0x411430
push esi
call fcn.00418c20
add esp, 0xc
test al, al
je 0x407910
push ebx
mov edi, 0x47656c
call fcn.00416f60
add esp, 4
test al, al
je 0x407910
mov esi, dword [esp + 0x14]
push ebx
mov ecx, esi
call fcn.00411540
add esp, 4
test al, al
je 0x407910
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ecx
push edi
push edx
push eax
push esi
mov esi, dword [esp + 0x24]
xor bl, bl
call fcn.00420e30
add esp, 0x14
test al, al
je 0x40790c
mov ecx, dword [esp + 0x20]
push edi
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, esi
push edx
call fcn.0041bf10
add esp, 0xc
test al, al
je 0x40790c
mov eax, esi
push eax
mov edi, str._Log__r_n_r_n
call fcn.00416f60
add esp, 4
test al, al
je 0x40790c
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0xf], 1
je 0x40791f
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x24]
push edx
push 1
push 0x44a
mov ecx, esi
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x424530
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x407917
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x407919
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 0
jmp 0x407923
mov al, 1
and al, 1
mov byte [esp + 0xf], al
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0xf], 0
jne 0x40795b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x30]
or dword [0x48d518], 0x200000
jmp 0x40795f
mov esi, dword [esp + 0x30]
mov dword [esi + 0x13c], 0
mov eax, dword [esi + 0x140]
test eax, eax
je 0x4079c9
mov edx, dword [esi + 0xf4]
mov ecx, dword [esi + 0xf0]
cmp dword [esi + 0xe8], 0
push edx
mov edx, dword [esi + 0xec]
push ecx
push edx
setne cl
cmp dword [esi + 0xe4], 0
setne dl
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push 3
push eax
call fcn.00411250
add esp, 0x1c
test al, al
jne 0x4079bf
or dword [0x48d518], 0x200000
mov dword [esi + 0x140], 0
mov ebx, dword [esi + 0x144]
test ebx, ebx
je 0x407a61
cmp dword [esi + 0xe4], 0
mov eax, dword [esi + 0xec]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
setne cl
push ebx
mov dword [esp + 0x3c], eax
mov byte [esp + 0x38], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407a4d
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
push edi
call fcn.0041d500
add esp, 8
push edi
mov byte [esp + 0x13], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0xf], 0
jne 0x407a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [0x48d518], 0x200000
mov dword [esi + 0x144], 0
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00454016
mov esp, ebp
pop ebp
ret 4