Function at 0x4d43b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4d43c0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4d49cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp byte [ebx + 0xc6], 0
jne 0x4d4423
mov eax, ebx
call fcn.004d3f80
test al, 2
je 0x4d43fc
mov byte [ebx + 0xc6], 3
jmp 0x4d4423
mov eax, dword [ebx + 0x70]
call fcn.004d0294
test al, al
jne 0x4d4413
mov eax, ebx
call fcn.004d3f80
test al, 1
je 0x4d441c
mov byte [ebx + 0xc6], 2
jmp 0x4d4423
mov byte [ebx + 0xc6], 1
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x2c]
call fcn.00406db4
cmp byte [ebx + 0xc6], 1
je 0x4d445d
cmp byte [ebx + 0xc6], 3
sete al
push eax
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004d30b0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.00406db4
mov eax, ebx
call fcn.004d3f80
test al, 4
setne cl
mov dl, 1
mov eax, ebx
call fcn.004d277c
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0xe8]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0xec]
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 0x70]
call fcn.004d0294
test al, al
jne 0x4d452e
mov eax, ebx
call fcn.004d3f80
test al, 4
je 0x4d452e
cmp byte [ebx + 0x78], 2
je 0x4d44b6
cmp word [ebp - 0x16], 0
jne 0x4d452e
cmp byte [ebx + 0xc6], 1
jne 0x4d44ce
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x28]
mov eax, ebx
call fcn.004d5070
jmp 0x4d44ea
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x28]
inc eax
call fcn.00413524
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 0x4d49ec
call fcn.0040721c
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004d5574
sub eax, 0xfffffffe
je 0x4d4516
dec eax
jne 0x4d452e
push 1
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
jmp 0x4d452e
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
mov eax, dword [ebx + 0x70]
call fcn.004d0294
test al, al
jne 0x4d4543
cmp byte [ebx + 0xc6], 1
je 0x4d4549
mov edi, dword [ebx + 0x28]
inc edi
jmp 0x4d457a
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 4]
mov ecx, 3
mov edx, 9
call fcn.00407488
mov eax, dword [ebp - 0x2c]
mov edx, 1
call fcn.00413824
mov edi, eax
test edi, edi
jge 0x4d457a
mov edi, 1
movzx eax, byte [0x4d49fc]
mov byte [ebx + 0x79], al
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004d21e0
mov esi, eax
cmp esi, 6
jne 0x4d45df
mov eax, dword [ebx + 0x70]
call fcn.004d0294
test al, al
je 0x4d45df
mov eax, ebx
call fcn.004d3f80
test al, 2
je 0x4d45df
mov eax, dword [ebx + 0x60]
call fcn.00413d00
test al, al
je 0x4d45df
mov ecx, edi
mov edx, dword [ebx + 0x60]
mov eax, ebx
call fcn.004d21e0
mov esi, eax
cmp esi, 6
jne 0x4d45df
mov eax, dword [ebx + 0x74]
cmp byte [eax + 0x2c], 0
sete dl
mov eax, dword [ebx + 0x60]
call fcn.004c70e0
test esi, esi
je 0x4d45f9
cmp esi, 2
je 0x4d45f9
cmp esi, 7
jne 0x4d4611
mov eax, dword [ebx + 0x70]
call fcn.004d0294
test al, al
je 0x4d4611
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
cmp esi, 7
jne 0x4d462e
xor eax, eax
mov dword [ebx + 0x8c], eax
mov byte [ebx + 0xc5], 1
mov byte [ebp - 0xd], 1
jmp 0x4d49a5
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004d33b4
test al, al
jne 0x4d46b9
lea ecx, [ebp - 8]
mov edx, 0x2b01
mov eax, dword [ebx + 0x10]
call fcn.004cf3c8
push 0x11271c
movzx eax, word [0x4d4a00]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.004cf5ec
mov esi, eax
test esi, esi
jne 0x4d4684
push 1
mov ecx, 0x2afe
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
cmp esi, 4
je 0x4d46a1
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
xor eax, eax
mov dword [ebx + 0x8c], eax
mov byte [ebx + 0xc5], 1
mov byte [ebp - 0xd], 1
jmp 0x4d49a5
mov eax, dword [ebx + 0x70]
call fcn.004d06e0
cmp dword [ebx + 0x28], 0
jne 0x4d46d2
mov eax, ebx
call fcn.004d3d60
test eax, eax
ja 0x4d46dd
mov eax, ebx
call fcn.004d3d58
test eax, eax
jbe 0x4d474b
mov eax, ebx
call fcn.004d3d60
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
test edx, edx
je 0x4d4714
mov eax, ebx
call fcn.004d3d60
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
mov edx, eax
inc edx
mov eax, dword [ebx + 0x70]
imul edx, dword [eax + 0x24]
mov eax, ebx
call fcn.004d4f84
mov eax, ebx
call fcn.004d3d58
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
test edx, edx
je 0x4d474b
mov eax, ebx
call fcn.004d3d58
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + 0x24]
xor edx, edx
div ecx
mov edx, eax
inc edx
mov eax, dword [ebx + 0x70]
imul edx, dword [eax + 0x24]
mov eax, ebx
call fcn.004d4f7c
mov eax, dword [ebx + 0x70]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
push edx
push eax
mov eax, ebx
call fcn.004d3d58
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, ebx
call fcn.004d3d94
cmp edx, 0
jne 0x4d4781
cmp eax, 0
jbe 0x4d47a5
jmp 0x4d4783
jle 0x4d47a5
mov eax, ebx
call fcn.004d3d94
cmp edx, dword [ebx + 0xc]
jne 0x4d4796
cmp eax, dword [ebx + 8]
jae 0x4d47a5
jmp 0x4d4798
jge 0x4d47a5
mov eax, ebx
call fcn.004d3d94
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
cmp dword [ebx + 0x28], 0
jne 0x4d47cb
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push edx
push eax
mov eax, ebx
call fcn.004d3d60
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, ebx
call fcn.004d3db4
xor edx, edx
cmp edx, dword [ebx + 0xc]
jne 0x4d47e4
cmp eax, dword [ebx + 8]
jbe 0x4d4918
jmp 0x4d47ea
jle 0x4d4918
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x130]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x134]
mov dword [ebp - 0x1c], edx
mov eax, ebx
call fcn.004d3224
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
call sub.kernel32.dll_DeleteFileW
cmp word [ebp - 0x1e], 0
je 0x4d489b
cmp byte [ebx + 0xc6], 1
je 0x4d482d
mov edi, dword [ebx + 0x28]
inc edi
jmp 0x4d485e
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 4]
mov ecx, 3
mov edx, 9
call fcn.00407488
mov eax, dword [ebp - 0x30]
mov edx, 1
call fcn.00413824
mov edi, eax
test edi, edi
jge 0x4d485e
mov edi, 1
mov byte [ebx + 0x78], 1
movzx eax, byte [0x4d4a04]
mov byte [ebx + 0x79], al
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0x79]
push eax
lea eax, [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x38]
mov ecx, edi
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
cmp byte [ebx + 0x78], 4
jne 0x4d4894
mov esi, 2
jmp 0x4d48c7
mov esi, 4
jmp 0x4d48c7
lea ecx, [ebp - 8]
mov edx, 0x2b18
mov eax, dword [ebx + 0x10]
call fcn.004cf3c8
push 0x11271d
movzx eax, word [0x4d4a00]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.004cf5ec
mov esi, eax
test esi, esi
jne 0x4d48e3
push 1
mov ecx, 0x2afe
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
cmp esi, 4
je 0x4d4900
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
xor eax, eax
mov dword [ebx + 0x8c], eax
mov byte [ebx + 0xc5], 1
mov byte [ebp - 0xd], 1
jmp 0x4d49a5
mov eax, dword [ebx + 0x70]
call fcn.004d0294
test al, al
jne 0x4d4961
cmp byte [ebx + 0xc6], 1
jne 0x4d4961
lea ecx, [ebp - 0x34]
mov edx, dword [ebx + 0x28]
mov eax, ebx
call fcn.004d5070
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x70]
call fcn.004d03e8
test al, al
jne 0x4d4961
push 1
mov ecx, 0x2afd
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
mov eax, dword [ebx + 0x70]
call fcn.004d0294
test al, al
jne 0x4d49a5
cmp dword [ebx + 0xc], 0
jne 0x4d497e
cmp dword [ebx + 8], 0x400000
ja 0x4d49a5
jmp 0x4d4980
jg 0x4d49a5
mov eax, dword [ebx + 8]
push eax
lea eax, [ebx + 0x88]
mov ecx, 1
mov edx, dword [0x4d07dc]
call fcn.00408704
add esp, 4
xor eax, eax
mov dword [ebx + 0x80], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d49d4
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00406d58
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406d58
ret