Function at 0x40ea90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42ad4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x62c
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x435654]
mov dword [esp + 0xc], eax
mov dword [esp + 0x640], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64c]
lea ecx, [esp + 0x10]
push eax
push str.__s_
push ecx
mov byte [esp + 0x64c], 2
call fcn.00420183
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x654]
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, esi
push 0x104
push edx
push eax
push edi
call fcn.00412320
cmp eax, ebx
jne 0x40eb4a
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 0x40ec91
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00414d30
add esp, 8
cmp eax, ebx
je 0x40eb5f
mov byte [eax], bl
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00424d54
mov eax, dword [esp + 0xc]
push edi
lea edx, [esp + 0x20]
push 0x104
push edx
push 0x438904
push str.DataFile
push eax
call fcn.00406d60
add esp, 0x18
cmp eax, ebx
je 0x40eb22
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00414d30
add esp, 8
cmp eax, ebx
je 0x40eba8
mov byte [eax], bl
lea ecx, [esp + 0x534]
lea edx, [esp + 0x328]
push ecx
push edx
push ebx
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00414bd7
lea ecx, [esp + 0x33c]
push 0x43513c
push ecx
lea edx, [esp + 0x38]
push str._s._s
push edx
call fcn.00415355
lea eax, [esp + 0x450]
lea ecx, [esp + 0x40]
push eax
lea edx, [esi + 0x212]
push ecx
push edx
call fcn.00406200
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x255]
mov byte [esp + 0x254], 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 + 0x151]
mov byte [esp + 0x150], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x150]
lea ecx, [esp + 0x254]
push eax
lea edx, [esp + 0x460]
push ecx
push edx
call fcn.00406970
add esp, 0x3c
lea eax, [esp + 0x120]
lea ecx, [esp + 0x224]
lea edx, [esp + 0x14]
push ebx
push eax
push 0x438904
push ecx
push edx
mov ecx, esi
call fcn.0040c4a0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x640], 3
cmp dword [eax - 8], ebx
jne 0x40eccd
lea ecx, [esp + 0x14]
mov byte [esp + 0x640], 2
call fcn.00424c17
lea ecx, [esp + 0x10]
mov byte [esp + 0x640], 1
call fcn.00424c17
lea ecx, [esp + 0x18]
mov byte [esp + 0x640], bl
call fcn.00424c17
lea ecx, [esp + 0xc]
mov dword [esp + 0x640], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x40ed58
push eax
lea eax, [esp + 0x20]
push 0x104
push eax
push 0x438904
push str.OEMDriverFile1
push str.OEMFiles
call fcn.00406d60
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x650]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x640], 2
call fcn.00424c17
lea ecx, [esp + 0x10]
mov byte [esp + 0x640], 1
call fcn.00424c17
lea ecx, [esp + 0x18]
mov byte [esp + 0x640], bl
call fcn.00424c17
lea ecx, [esp + 0xc]
mov dword [esp + 0x640], 0xffffffff
call fcn.00424c17
mov eax, 1
mov ecx, dword [esp + 0x638]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x638
ret 0xc