Function at 0x40ccd2
Capabilities:
Check if file exists
Delete file
Manipulate boot configuration

Disassembly:
push 0xffffffffffffffff
push 0x4369d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x4481e0]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x124], eax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call fcn.0040bde0
mov ecx, esi
call fcn.0040bf40
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 0x24], ebx
je 0x40cd2d
push ecx
mov eax, ecx
mov ecx, dword [eax + 0x24]
mov edx, esp
mov dword [esp + 0x18], esp
push ecx
add eax, 4
push eax
push edx
call fcn.0040b200
mov ecx, esi
call fcn.0040b120
cmp eax, ebx
jne 0x40cd2d
mov dword [esi + 0x60], 1
mov ecx, esi
call fcn.0040c120
mov dword [esi + 0x68], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call fcn.00428fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
push str.wnwbwnwb.exe
add ecx, 4
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x13c], ebx
call fcn.004047c0
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cda0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
je 0x40cdab
mov dword [esi + 0x38], 1
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
push str.wnimedll32wn.ime
add ecx, 4
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004047c0
mov eax, dword [eax]
push eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cdeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
je 0x40cdf6
mov dword [esi + 0x44], 1
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
push str.wnimedelboot.ini
add ecx, 4
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004047c0
mov eax, dword [eax]
push eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
je 0x40ce41
mov dword [esi + 0x5c], 1
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
push 0x438fb4
add ecx, 4
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004047c0
mov eax, dword [eax]
push eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
je 0x40ce8c
mov dword [esi + 0x40], 1
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
push str.wnwb32wnwb.ime
add ecx, 4
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004047c0
mov eax, dword [eax]
push eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cecc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
je 0x40ced7
mov dword [esi + 0x3c], 1
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
push str.wniewnie.exe
add ecx, 4
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004047c0
mov eax, dword [eax]
push eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, ebx
je 0x40cf22
mov dword [esi + 0x48], 1
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
push str.wnpydll32wnpy.ime
add ecx, 4
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004047c0
mov eax, dword [eax]
push eax
call edi
mov edi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebx
je 0x40cf6d
mov dword [esi + 0x4c], 1
mov eax, dword [0x44914c]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x1c]
lea edx, [eax + 4]
add ecx, 0x28
push edx
call fcn.00402780
mov ecx, dword [0x44914c]
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 0x20]
lea edx, [eax + 4]
add ecx, 0x28
push edx
call fcn.00402780
mov edx, dword [0x44914c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x24]
lea edx, [eax + 4]
add ecx, 0x28
push edx
call fcn.00402780
mov eax, dword [0x44914c]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x28]
lea edx, [eax + 4]
add ecx, 0x28
push edx
call fcn.00402780
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov cx, word [ecx]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
movzx edx, cx
shl edx, 0x10
or edx, 1
push edx
push ebx
push 0x401
push eax
call ebp
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
cmp dword [edx + 0x14], ebx
je 0x40d020
mov ecx, esi
call fcn.0040c9c0
mov ecx, dword [0x44914c]
mov edx, dword [ecx + 0x14]
mov ecx, dword [edx + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [0x44914c]
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + 0x1c]
cmp dword [ecx + 0x14], ebx
je 0x40d041
cmp dword [ecx + 0x18], ebx
jne 0x40d041
mov eax, dword [eax]
cmp eax, ebx
je 0x40d35b
push ebx
push ebx
jmp 0x40d350
mov ecx, dword [edx + 0x20]
cmp dword [ecx + 0x14], ebx
je 0x40d064
mov ecx, esi
call fcn.0040caa0
mov edx, dword [0x44914c]
mov ecx, dword [edx + 0x14]
mov edx, dword [ecx + 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [0x44914c]
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + 0x20]
cmp dword [ecx + 0x14], ebx
je 0x40d08e
cmp dword [ecx + 0x18], ebx
jne 0x40d08e
mov eax, dword [eax]
cmp eax, ebx
je 0x40d35b
mov eax, dword [eax + 0x1c]
push ebx
push ebx
push 0x464
push eax
jmp 0x40d359
mov ecx, dword [edx + 0x24]
cmp dword [ecx + 0x14], ebx
je 0x40d0b1
mov ecx, esi
call fcn.0040cbb0
mov edx, dword [0x44914c]
mov ecx, dword [edx + 0x14]
mov edx, dword [ecx + 0x24]
mov dword [edx + 0x18], eax
mov eax, dword [0x44914c]
mov edx, dword [eax + 0x14]
mov ecx, dword [edx + 0x24]
cmp dword [ecx + 0x14], ebx
je 0x40d0db
cmp dword [ecx + 0x18], ebx
jne 0x40d0db
mov eax, dword [eax]
cmp eax, ebx
je 0x40d35b
mov eax, dword [eax + 0x1c]
push ebx
push ebx
push 0x464
push eax
jmp 0x40d359
mov ecx, dword [edx + 0x28]
cmp dword [ecx + 0x14], ebx
je 0x40d0fe
mov ecx, esi
call fcn.0040cc10
mov edx, dword [0x44914c]
mov ecx, dword [edx + 0x14]
mov edx, dword [ecx + 0x28]
mov dword [edx + 0x18], eax
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x28]
cmp dword [ecx + 0x14], ebx
je 0x40d11f
cmp dword [ecx + 0x18], ebx
jne 0x40d11f
mov eax, dword [eax]
cmp eax, ebx
je 0x40d35b
push ebx
push ebx
jmp 0x40d350
mov ecx, 0x44915c
call fcn.0040a6d0
mov ecx, esi
call fcn.0040ac40
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x1c]
call fcn.0040ece0
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
cmp dword [edx + 0x14], ebx
je 0x40d183
cmp dword [esi + 0x40], ebx
jne 0x40d183
cmp dword [ecx + 0x3c], ebx
jne 0x40d183
mov eax, ecx
push str.wnwb32wnwbio.ime
add eax, 4
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004047c0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call fcn.00401060
mov eax, dword [0x44914c]
mov eax, dword [eax + 0x14]
add eax, 4
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.00401de0
add eax, 0x10
mov dword [edi], eax
mov edx, dword [0x44914c]
mov eax, dword [edx + 0x14]
add eax, 8
mov eax, dword [eax]
sub eax, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
push eax
mov byte [esp + 0x13c], 1
call fcn.00401de0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
mov byte [esp + 0x138], bl
call fcn.0040b2b0
cmp eax, ebx
jne 0x40d269
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x24]
push 0x43a8f8
push eax
call fcn.0041bc2e
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x1c]
add esp, 0xc
push ebx
push ecx
push 0x402
push edx
call ebp
mov eax, dword [0x44914c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40d245
push ebx
push 0x43a40c
lea edx, [esp + 0x28]
push edx
call fcn.0042a97f
mov eax, dword [0x44914c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push 0x464
push ecx
call ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x130], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d37a
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x20]
cmp dword [edx + 0x14], ebx
je 0x40d295
cmp dword [esi + 0x5c], ebx
je 0x40d295
mov edi, 1
mov dword [esi + 0x68], edi
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x20]
call fcn.00405c80
jmp 0x40d29a
mov edi, 1
mov ecx, dword [0x44914c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x28]
cmp dword [eax + 0x14], ebx
je 0x40d2c1
cmp dword [esi + 0x64], ebx
je 0x40d2c1
mov dword [esi + 0x68], edi
mov ecx, dword [0x44914c]
mov ecx, dword [ecx + 0x20]
call fcn.00405f60
mov edx, dword [0x44914c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x1c]
cmp dword [ecx + 0x14], ebx
je 0x40d2f9
cmp dword [esi + 0x54], ebx
jne 0x40d2e1
cmp dword [esi + 0x50], ebx
jne 0x40d2e1
cmp dword [esi + 0x58], ebx
je 0x40d2f9
mov dword [esi + 0x68], edi
mov eax, dword [0x44914c]
mov edx, dword [eax + 0x14]
cmp dword [edx + 0x3c], ebx
je 0x40d2f9
mov ecx, dword [eax + 0x20]
call fcn.004059d0
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
cmp dword [edx + 0x14], ebx
je 0x40d317
mov ecx, esi
call fcn.0040ae50
mov ecx, esi
call fcn.0040afa0
cmp dword [esi + 0x68], ebx
je 0x40d342
mov eax, dword [0x44914c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40d35b
push edi
push 0x43a40c
push 0x43a8a0
call fcn.0042a97f
cmp eax, edi
jne 0x40d342
mov ecx, esi
call fcn.0040add0
mov ecx, dword [0x44914c]
mov eax, dword [ecx]
cmp eax, ebx
je 0x40d35b
push ebx
push edi
mov edx, dword [eax + 0x1c]
push 0x464
push edx
call ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x130], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
call fcn.0041b28e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret