Function at 0x40af40
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49ecd9
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x4c13e0]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov ebx, edx
xor edi, edi
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
cmp ebx, edi
jne 0x40af99
xor eax, eax
jmp 0x40b8f6
mov eax, dword [ebx]
cmp eax, 0x44484d52
ja 0x40b5c0
je 0x40b5a5
cmp eax, 0x43524552
ja 0x40b57b
je 0x40b541
cmp eax, 0x1f4
je 0x40b3a1
cmp eax, 0x43484c53
jne 0x40b8f1
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x7c], edi
jne 0x40b8f1
mov dword [esp + 0x4c], 0x4c9470
mov dword [esp + 0x50], edi
mov dword [esp + 0x198], edi
cmp eax, 0xce
jne 0x40b21a
call fcn.0040bb00
lea eax, [esp + 0x1c]
push eax
call fcn.00436940
lea ecx, [esp + 0x1c]
push ecx
push 0x41e
add esi, 0x34
push esi
mov byte [esp + 0x1a4], 1
call fcn.00409080
mov dword [esp + 0x14], 0x4c8e80
jmp 0x40b040
mov edx, dword [esp + 0x14]
cmp dword [edx], 0
je 0x40b12e
cmp dword [esp + 0x50], 0
je 0x40b071
mov eax, dword [0x4c9484]
test eax, eax
je 0x40b069
call eax
push 0x4c9470
call fcn.00429ab0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov esi, 0x4c9470
call fcn.004298b0
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
cmp esi, eax
jbe 0x40b09a
call fcn.00477ad6
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov edi, edi
mov edi, eax
cmp dword [esp + 0x28], eax
jbe 0x40b0ad
call fcn.00477ad6
test ebx, ebx
je 0x40b0b7
cmp ebx, dword [esp + 0x1c]
je 0x40b0bc
call fcn.00477ad6
cmp esi, edi
je 0x40b12e
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x7c], 0
jne 0x40b175
test ebx, ebx
jne 0x40b126
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40b0e3
call fcn.00477ad6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x54]
push eax
push 0
push 0xce
push 0x41e
call edx
test eax, eax
jne 0x40b1c2
test ebx, ebx
jne 0x40b12a
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40b11a
call fcn.00477ad6
mov eax, dword [esp + 0x2c]
add esi, 4
jmp 0x40b0a0
mov eax, dword [ebx]
jmp 0x40b0d9
mov eax, dword [ebx]
jmp 0x40b110
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, 0x4c8ebc
mov dword [esp + 0x14], eax
jl 0x40b040
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
je 0x40b157
push eax
call fcn.00476df2
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00476df2
add esp, 4
jmp 0x40b36e
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40b186
push eax
call fcn.00476df2
add esp, 4
mov eax, dword [esp + 0x1c]
xor esi, esi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00476df2
add esp, 4
mov dword [esp + 0x198], 0xffffffff
cmp dword [esp + 0x50], esi
je 0x40b8f1
mov eax, dword [0x4c9484]
test eax, eax
jmp 0x40b38a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40b1d3
push eax
call fcn.00476df2
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.00476df2
add esp, 4
mov dword [esp + 0x198], 0xffffffff
cmp dword [esp + 0x50], 0
je 0x40b8f1
mov eax, dword [0x4c9484]
test eax, eax
jmp 0x40b38a
lea eax, [esp + 0x1c]
push eax
call fcn.00436940
lea ecx, [esp + 0x1c]
push ecx
push 0x41e
add esi, 0x34
push esi
mov byte [esp + 0x1a4], 2
call fcn.00409080
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp esi, eax
jbe 0x40b254
call fcn.00477ad6
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov edi, eax
cmp dword [esp + 0x28], eax
jbe 0x40b265
call fcn.00477ad6
test ebx, ebx
je 0x40b26f
cmp ebx, dword [esp + 0x1c]
je 0x40b274
call fcn.00477ad6
cmp esi, edi
je 0x40b340
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x7c], 0
jne 0x40b2e0
test ebx, ebx
jne 0x40b2d8
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40b29b
call fcn.00477ad6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x18]
xor edi, edi
push edi
push edx
push 0x41e
call eax
cmp eax, edi
jne 0x40b311
cmp ebx, edi
jne 0x40b2dc
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40b2cf
call fcn.00477ad6
mov eax, dword [esp + 0x2c]
add esi, 4
jmp 0x40b258
mov eax, dword [ebx]
jmp 0x40b291
mov eax, dword [ebx]
jmp 0x40b2c5
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40b2f1
push eax
call fcn.00476df2
add esp, 4
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00476df2
add esp, 4
jmp 0x40b8f1
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40b322
push eax
call fcn.00476df2
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.00476df2
add esp, 4
jmp 0x40b8f1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40b351
push eax
call fcn.00476df2
add esp, 4
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00476df2
add esp, 4
xor esi, esi
mov dword [esp + 0x198], 0xffffffff
cmp dword [esp + 0x50], esi
je 0x40b8f1
mov eax, dword [0x4c9484]
cmp eax, esi
je 0x40b8f1
call eax
push 0x4c9470
call fcn.00429ab0
jmp 0x40b8f1
cmp dword [ebx + 8], edi
je 0x40af92
cmp dword [ebx + 4], 0xc48
jne 0x40af92
mov dword [esp + 0x14], edi
cmp dword [esi + 0x7c], edi
jne 0x40b8f1
mov dword [esp + 0x54], 0x4c9470
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x19c], 0xb
call fcn.00436940
lea edx, [esp + 0x34]
push edx
push 0x4a
add esi, 0x34
push esi
mov byte [esp + 0x1a4], 0xd
call fcn.00409080
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
cmp esi, eax
jbe 0x40b412
call fcn.00477ad6
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
lea ebx, [ebx]
mov edi, eax
cmp dword [esp + 0x40], eax
jbe 0x40b42d
call fcn.00477ad6
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40b43b
cmp eax, dword [esp + 0x34]
je 0x40b444
call fcn.00477ad6
mov eax, dword [esp + 0x4c]
cmp esi, edi
je 0x40b510
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x7c], 0
jne 0x40b4b0
test eax, eax
jne 0x40b4a8
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40b46b
call fcn.00477ad6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x14]
push edx
push ebx
xor edi, edi
push edi
push 0x4a
call eax
cmp eax, edi
jne 0x40b4e1
mov eax, dword [esp + 0x4c]
cmp eax, edi
jne 0x40b4ac
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40b49c
call fcn.00477ad6
mov eax, dword [esp + 0x44]
add esi, 4
jmp 0x40b420
mov eax, dword [eax]
jmp 0x40b461
mov eax, dword [eax]
jmp 0x40b492
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40b4c1
push eax
call fcn.00476df2
add esp, 4
mov ecx, dword [esp + 0x34]
xor eax, eax
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00476df2
add esp, 4
jmp 0x40b8f1
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x40b4f2
push eax
call fcn.00476df2
add esp, 4
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00476df2
add esp, 4
jmp 0x40b8f1
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40b521
push eax
call fcn.00476df2
add esp, 4
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
push eax
call fcn.00476df2
add esp, 4
jmp 0x40b8f1
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x54], edi
cmp eax, edi
je 0x40b8f1
mov eax, dword [eax]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push 0x20006
push 1
push edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x40b8f1
cmp eax, 0x44454c46
jne 0x40b8f1
cmp dword [ebx + 4], edi
je 0x40b8f1
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x40b8f1
push eax
call fcn.00403a30
jmp 0x40b8f1
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x40b8f1
mov ecx, dword [eax]
push ecx
call fcn.0044eea0
add esp, 4
jmp 0x40b8f1
cmp eax, 0x544f5749
ja 0x40b7d1
je 0x40b7a7
cmp eax, 0x4c4f504c
je 0x40b74c
cmp eax, 0x50536952
jne 0x40b8f1
cmp dword [ebx + 8], edi
je 0x40af92
cmp dword [ebx + 4], 0x828
jne 0x40af92
mov dword [esp + 0x54], edi
cmp dword [esi + 0x7c], edi
jne 0x40b8f1
mov dword [esp + 0x4c], 0x4c9470
mov dword [esp + 0x50], edi
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x19c], 8
call fcn.00436940
lea eax, [esp + 0x34]
push eax
push 0x4a
add esi, 0x34
push esi
mov byte [esp + 0x1a4], 0xa
call fcn.00409080
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
cmp esi, eax
jbe 0x40b658
call fcn.00477ad6
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
lea esp, [esp]
mov edi, eax
cmp dword [esp + 0x40], eax
jbe 0x40b66d
call fcn.00477ad6
test ebx, ebx
je 0x40b677
cmp ebx, dword [esp + 0x34]
je 0x40b67c
call fcn.00477ad6
cmp esi, edi
je 0x40b71b
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x7c], 0
jne 0x40b510
test ebx, ebx
jne 0x40b6e4
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40b6a7
call fcn.00477ad6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x18]
push eax
xor edi, edi
push edi
push 0x4a
call edx
cmp eax, edi
jne 0x40b6ec
cmp ebx, edi
jne 0x40b6e8
call fcn.00477ad6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40b6d8
call fcn.00477ad6
mov eax, dword [esp + 0x44]
add esi, 4
jmp 0x40b660
mov eax, dword [ebx]
jmp 0x40b69d
mov eax, dword [ebx]
jmp 0x40b6ce
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x40b6fd
push eax
call fcn.00476df2
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.00476df2
add esp, 4
jmp 0x40b8f1
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40b72c
push eax
call fcn.00476df2
add esp, 4
mov edx, dword [esp + 0x34]
xor eax, eax
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00476df2
add esp, 4
jmp 0x40b8f1
cmp dword [ebx + 4], 0xf4
jb 0x40af92
mov eax, dword [ebx + 8]
cmp dword [eax], 0xf4
jne 0x40af92
add eax, 4
push eax
lea eax, [esp + 0x98]
push 0x78
push eax
call fcn.00477f8a
add esp, 0xc
push 1
lea ecx, [esp + 0x98]
push ecx
push edi
push esi
xor ecx, ecx
call fcn.00409b60
cmp eax, edi
je 0x40b8f1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
jmp 0x40b8f1
cmp dword [ebx + 4], 0xa08
jb 0x40b8f1
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x40b8f1
lea ecx, [eax + 0x208]
push ecx
push eax
call fcn.0040bcf0
jmp 0x40b8f1
cmp eax, 0x5457534c
jne 0x40b8f1
cmp dword [ebx + 4], 0x40
jb 0x40b8f1
mov edi, dword [ebx + 8]
test edi, edi
je 0x40b8f1
lea esi, [esp + 0x5c]
call fcn.0044e960
mov ebx, 8
mov dword [esp + 0x198], 3
cmp dword [eax + 0x18], ebx
jb 0x40b814
mov eax, dword [eax + 4]
jmp 0x40b817
add eax, 4
lea edx, [esp + 0x54]
push edx
mov ecx, eax
call fcn.00408c70
add esp, 4
lea esi, [esp + 0x5c]
mov byte [esp + 0x198], 5
call fcn.0040bfa0
mov eax, dword [esp + 0x54]
push edi
call fcn.0043fdf0
add esp, 4
cmp dword [edi + 0x38], 0
jbe 0x40b8e8
lea esi, [esp + 0x18]
call fcn.00408280
mov eax, esi
mov byte [esp + 0x198], 6
mov ecx, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x24]
call fcn.0043ff70
add esp, 4
test eax, eax
je 0x40b8cf
lea esi, [esp + 0x78]
call fcn.0044e960
mov byte [esp + 0x198], 7
cmp dword [eax + 0x18], ebx
jb 0x40b88f
mov eax, dword [eax + 4]
jmp 0x40b892
add eax, 4
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov esi, eax
call fcn.00408cf0
add esp, 8
lea esi, [esp + 0x78]
call fcn.0040bfa0
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x38]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea ebx, [edi + 0x3c]
call fcn.00440000
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00455380
cmp dword [edi + 0x30], 0
je 0x40b8df
add edi, 0x3c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
call fcn.00455380
lea ecx, [esp + 0x54]
call fcn.00455380
mov eax, 1
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00476dfd
mov esp, ebp
pop ebp
ret