Function at 0x4941db
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x94]
mov ecx, dword [eax]
push edi
xor ebx, ebx
xor edi, edi
cmp ecx, ebx
je 0x4941fc
mov edi, dword [ecx + 4]
mov dword [eax], ebx
call fcn.004b859b
mov dword [esi + 0x134], eax
mov dword [esi + 0x138], edx
cmp dword [esi + 0xc8], ebx
je 0x494223
or dword [esi + 0x13c], 0xffffffff
jmp 0x494477
cmp dword [ebp + 8], ebx
jne 0x494418
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
je 0x494418
or dword [esi + 0x13c], 0xffffffff
lea edi, [esi + 0x98]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x494252
call fcn.00451395
mov dword [edi], ebx
lea ecx, [esi + 0x9c]
cmp dword [ecx], 0xffffffff
je 0x494262
call fcn.00481ff4
lea edi, [esi + 0xa0]
mov eax, dword [edi]
cmp eax, ebx
je 0x494373
xor ecx, ecx
cmp word [eax], bx
sete cl
cmp cl, bl
jne 0x494373
lea ecx, [ebp - 0x18]
call fcn.0040c16d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
add eax, ecx
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0040c7e4
test eax, eax
je 0x4943df
cmp dword [ebp - 8], ebx
je 0x4943df
cmp byte [ebp - 0xc], 5
jne 0x4943df
lea ecx, [ebp - 0x90]
call fcn.00501c46
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 8]
call fcn.00502f43
push eax
mov ecx, esi
call fcn.00490667
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.004a0ff9
mov edx, dword [ebp + 8]
mov ecx, eax
call fcn.00482043
test eax, eax
jne 0x494343
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x528b7c
call fcn.004263e6
pop ecx
pop ecx
mov ecx, edi
call fcn.004a0ff9
push eax
push 0x528b50
call fcn.004263e6
push dword [ebp + 8]
push 0x528b28
call fcn.004263e6
add esp, 0x10
mov ecx, edi
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.004a0cb3
lea ecx, [ebp + 8]
call fcn.004a0cb3
or byte [esi + 0xf4], 0x10
lea ecx, [ebp - 0x90]
call fcn.00501c70
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x50fa3c
call fcn.0040ba32
test byte [esi + 0x2c], 2
je 0x49438b
call fcn.0048ee68
push dword [ebp + 0x10]
mov edx, dword [eax]
push dword [ebp + 0xc]
mov ecx, eax
call dword [edx + 8]
push dword [ebp + 0x10]
lea edi, [esi + 0xa8]
mov ecx, edi
call fcn.004a0ff9
mov edx, dword [ebp + 0xc]
mov ecx, eax
call fcn.004b9462
test al, al
jne 0x49440f
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
call fcn.004a0ff9
push eax
push 0x528ae8
call fcn.004263e6
add esp, 0x10
push 0x510d20
push 0x51a8e0
push 0x1f4
mov ecx, esi
call fcn.00492d02
jmp 0x494477
lea ecx, [esi + 0xa4]
call fcn.004a0e99
mov ecx, eax
call fcn.0049e604
push eax
push 0x528aa8
call fcn.004263e6
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x50fa3c
call fcn.0040ba32
jmp 0x494477
mov ecx, esi
call fcn.004935f2
jmp 0x494477
cmp edi, ebx
je 0x494477
test byte [edi + 0x16b], 0x20
je 0x494435
or dword [esi + 0x13c], 0xffffffff
or byte [esi + 0xf5], 1
jmp 0x494477
mov edi, dword [edi + 0x1d8]
cmp edi, 0xffffffff
je 0x494448
mov dword [esi + 0x13c], edi
jmp 0x494452
mov dword [esi + 0x13c], 0xa
mov ecx, dword [esi + 0x13c]
mov eax, 0x12c
cmp ecx, eax
jae 0x494463
mov eax, ecx
mov dword [esi + 0x13c], eax
cmp eax, 5
ja 0x494471
push 5
pop eax
mov dword [esi + 0x13c], eax
pop edi
pop esi
pop ebx
leave
ret 0x10