Function at 0x40e640
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42ad13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x688
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x435654]
mov dword [esp + 0x14], eax
mov dword [esp + 0x6a0], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6ac]
lea ecx, [esp + 0x10]
push eax
push str.__s_
push ecx
mov byte [esp + 0x6ac], 2
call fcn.00420183
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x6b4]
add esp, 0xc
lea edx, [esp + 0x7c]
mov ecx, esi
push 0x104
push edx
push eax
push ebp
call fcn.00412320
cmp eax, ebx
jne 0x40e6fb
mov cx, word [esi + 0x4d6]
mov edx, dword [esi + 0x4d0]
push 3
push ecx
push edx
call fcn.00406fa0
add esp, 0xc
mov ecx, esi
push eax
push 2
call fcn.0040cdb0
jmp 0x40e983
lea eax, [esp + 0x7c]
push 0x2c
push eax
call fcn.00414d30
add esp, 8
cmp eax, ebx
je 0x40e710
mov byte [eax], bl
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00424d54
mov eax, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x80]
push 0x104
push edx
push 0x438904
push str.DataFile
push eax
call fcn.00406d60
add esp, 0x18
cmp eax, ebx
je 0x40e6d3
lea eax, [esp + 0x7c]
push 0x2c
push eax
call fcn.00414d30
add esp, 8
cmp eax, ebx
je 0x40e75c
mov byte [eax], bl
lea ecx, [esp + 0x594]
lea edx, [esp + 0x388]
push ecx
push edx
push ebx
lea eax, [esp + 0x88]
push ebx
push eax
call fcn.00414bd7
lea ecx, [esp + 0x39c]
push 0x43513c
push ecx
lea edx, [esp + 0x98]
push str._s._s
push edx
call fcn.00415355
lea eax, [esp + 0x4b0]
lea ecx, [esp + 0xa0]
push eax
lea edx, [esi + 0x212]
push ecx
push edx
call fcn.00406200
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2b5]
mov byte [esp + 0x2b4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1b1]
mov byte [esp + 0x1b0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x2b4]
push eax
lea edx, [esp + 0x4c0]
push ecx
push edx
call fcn.00406970
add esp, 0x3c
lea eax, [esp + 0x180]
lea ecx, [esp + 0x284]
lea edx, [esp + 0x18]
push ebx
push eax
push 0x438904
push ecx
push edx
mov ecx, esi
call fcn.0040c4a0
mov eax, dword [esp + 0x18]
mov byte [esp + 0x6a0], 3
cmp dword [eax - 8], ebx
je 0x40e972
push eax
lea eax, [esp + 0x80]
push 0x104
push eax
push 0x438904
push str.OEMDriverFile1
push str.OEMFiles
call fcn.00406d60
mov ecx, dword [esp + 0x30]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xa
lea ecx, [esp + 0x2c]
call fcn.004204de
push 0xa
lea ecx, [esp + 0x64]
mov byte [esp + 0x6a4], 4
call fcn.004204de
push 0xa
lea ecx, [esp + 0x48]
mov byte [esp + 0x6a4], 5
call fcn.004204de
lea edx, [esp + 0x44]
lea eax, [esp + 0x60]
push edx
mov edx, dword [esp + 0x6b0]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
push ebp
mov ecx, esi
mov byte [esp + 0x6b4], 6
call fcn.0040dd90
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
cmp esi, ebx
je 0x40e93f
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x24]
push eax
call fcn.0042498c
mov eax, edi
mov edi, dword [edi]
add eax, 8
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x6a4], 7
call fcn.0042498c
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x7c]
push eax
push ecx
call ebp
test eax, eax
je 0x40e9bf
lea ecx, [esp + 0x20]
mov byte [esp + 0x6a0], 7
call fcn.00424c17
lea ecx, [esp + 0x24]
mov byte [esp + 0x6a0], 6
call fcn.00424c17
cmp esi, ebx
jne 0x40e8db
lea ecx, [esp + 0x44]
mov byte [esp + 0x6a0], 5
call fcn.00420552
lea ecx, [esp + 0x60]
mov byte [esp + 0x6a0], 4
call fcn.00420552
lea ecx, [esp + 0x28]
mov byte [esp + 0x6a0], 3
call fcn.00420552
lea ecx, [esp + 0x18]
mov byte [esp + 0x6a0], 2
call fcn.00424c17
lea ecx, [esp + 0x10]
mov byte [esp + 0x6a0], 1
call fcn.00424c17
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6a0], bl
call fcn.00424c17
lea ecx, [esp + 0x14]
mov dword [esp + 0x6a0], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x40ea72
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x6b0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x20]
mov byte [esp + 0x6a0], 7
call fcn.00424c17
lea ecx, [esp + 0x24]
mov byte [esp + 0x6a0], 6
call fcn.00424c17
lea ecx, [esp + 0x44]
mov byte [esp + 0x6a0], 5
call fcn.00420552
lea ecx, [esp + 0x60]
mov byte [esp + 0x6a0], 4
call fcn.00420552
lea ecx, [esp + 0x28]
mov byte [esp + 0x6a0], 3
call fcn.00420552
lea ecx, [esp + 0x18]
mov byte [esp + 0x6a0], 2
call fcn.00424c17
lea ecx, [esp + 0x10]
mov byte [esp + 0x6a0], 1
call fcn.00424c17
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6a0], bl
call fcn.00424c17
lea ecx, [esp + 0x14]
mov dword [esp + 0x6a0], 0xffffffff
call fcn.00424c17
mov eax, 1
mov ecx, dword [esp + 0x698]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x694
ret 0xc