Function at 0x4911b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4911c0
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fd4
xor eax, eax
push ebp
push 0x4915fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov dl, 1
mov eax, dword [0x45366c]
call fcn.00402e48
mov ebx, eax
push 0xa
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404314
mov eax, dword [ebp - 0x20]
push eax
push ebx
call fcn.00455890
test al, al
je 0x491596
mov edx, esi
mov eax, ebx
call fcn.0041249c
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00453e58
mov eax, dword [ebp - 0x24]
mov edx, 0x491618
call fcn.00403f30
jne 0x491596
mov dl, 1
mov eax, dword [0x45366c]
call fcn.00402e48
jmp 0x49157a
mov edx, dword [0x49118c]
mov eax, 0x10
call fcn.00404aa8
mov esi, eax
mov edx, esi
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00453e58
mov edx, dword [ebp - 0x28]
lea eax, [esi + 4]
call fcn.00404314
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00453e58
mov edx, dword [ebp - 0x2c]
lea eax, [esi + 8]
call fcn.00403bf4
xor eax, eax
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.0041248c
mov eax, dword [esi]
cmp eax, 8
jne 0x4912de
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
mov eax, ebx
call fcn.0041248c
mov edi, eax
mov ecx, dword [esi + 8]
mov edx, 0x491628
mov eax, 0x491638
call fcn.00454040
jmp 0x491561
cmp eax, 0x10
jne 0x491312
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
mov eax, ebx
call fcn.0041248c
mov edi, eax
mov eax, 0x491638
mov ecx, dword [esi + 8]
mov edx, 0x491670
call fcn.00454040
jmp 0x491561
mov eax, dword [esi]
cmp eax, 1
je 0x491327
cmp eax, 0xa
je 0x491327
cmp eax, 0xf
jne 0x4914f7
mov eax, dword [0x4bc4b0]
xor edx, edx
call fcn.00404388
je 0x491345
mov eax, dword [0x4bc4b0]
call fcn.00404324
push eax
call sub.kernel32.dll_DeleteFileW
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
mov eax, ebx
call fcn.0041248c
mov edi, eax
mov eax, dword [esi]
cmp eax, 0xa
je 0x491369
cmp eax, 0xf
jne 0x491393
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.00453ef8
mov edx, dword [ebp - 0x30]
lea eax, [esi + 4]
call fcn.0040420c
mov eax, ebx
call fcn.0041248c
sub eax, edi
sub dword [ebp - 0xc], eax
mov eax, ebx
call fcn.0041248c
mov edi, eax
lea edx, [ebp - 0x1c]
lea eax, [esi + 4]
call fcn.00491140
mov dl, 1
mov eax, dword [0x417f28]
call fcn.0041fc84
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004910f8
mov dl, 1
mov eax, dword [0x40f08c]
call fcn.00402e48
mov dword [ebp - 0x18], eax
cmp dword [esi], 0xf
jge 0x49141e
lea eax, [ebp - 0x34]
mov edx, dword [0x4bc4ac]
call fcn.00404314
push dword [ebp - 0x34]
push dword [esi + 4]
push 0x49167c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404340
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004557e8
mov edx, 0x3aa21b88
mov eax, dword [ebp - 0x14]
call fcn.00453bb4
jmp 0x4914e5
lea eax, [ebp - 0x38]
mov edx, dword [0x4bc4ac]
call fcn.00404314
push dword [ebp - 0x38]
push dword [esi + 4]
push 0x49167c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404340
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004557e8
mov edx, 0x3aa21b88
mov eax, dword [ebp - 0x14]
call fcn.00453bb4
lea eax, [ebp - 0x3c]
mov edx, dword [0x4bc4a8]
call fcn.00404314
push dword [ebp - 0x3c]
push dword [esi + 4]
push 0x49168c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404340
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x10]
call fcn.00403de8
mov eax, dword [ebp - 0x40]
mov edx, 0x20
call fcn.00408de0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
mov edx, dword [esi + 8]
call fcn.00404314
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
mov edx, dword [0x4c7ef0]
call fcn.00404314
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
pop edx
call fcn.00489950
mov edx, 0x3aa21b88
mov eax, dword [ebp - 0x10]
call fcn.00453bb4
mov eax, dword [ebp - 0x18]
call fcn.00402e78
mov eax, dword [esi + 0xc]
call fcn.00402e78
jmp 0x491561
cmp eax, 5
jne 0x491549
mov byte [0x4bc4a0], 1
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
mov eax, ebx
call fcn.0041248c
mov edi, eax
mov dl, 1
mov eax, dword [0x458ed8]
call fcn.00459188
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004910f8
mov eax, dword [esi + 0xc]
call fcn.00490f8c
mov eax, dword [esi + 0xc]
call fcn.00402e78
jmp 0x491561
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
mov eax, ebx
call fcn.0041248c
mov edi, eax
mov edx, dword [ebp - 0xc]
add edx, edi
mov eax, ebx
call fcn.0041249c
mov edx, dword [0x49118c]
mov eax, esi
call fcn.00404abc
mov eax, ebx
call fcn.0041248c
mov esi, eax
mov eax, ebx
call fcn.004124a8
cmp esi, eax
jl 0x49124d
mov byte [ebp - 5], 1
mov eax, ebx
call fcn.00402e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491603
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004041e8
lea eax, [ebp - 0x40]
call fcn.00403ba0
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.004041e8
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00403bc4
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004041e8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004041e8
lea eax, [ebp - 4]
call fcn.00403ba0
ret