Function at 0x50dae0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x42
push 0
push 0
dec ecx
jne 0x50dae8
push ecx
push ebx
mov byte [ebp - 0xd], dl
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50e510
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0xd], 0
je 0x50db2c
push 0x24
mov ecx, 0x50e51c
mov edx, 0x50e528
mov eax, dword [0x51984c]
mov eax, dword [eax]
call fcn.00478c38
cmp eax, 6
jne 0x50e4e5
mov dl, 1
mov eax, dword [0x41a048]
call fcn.00404308
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x50e4c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x770]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50dbf5
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x51973c]
push dword [eax]
mov eax, dword [0x519af0]
push dword [eax]
push 0x50e548
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50dbf5
cmp byte [ebp - 0xd], 0
je 0x50dbe7
mov eax, dword [0x5194d0]
cmp byte [eax], 0
je 0x50dbe7
push 0x24
lea eax, [ebp - 0x1f0]
mov ecx, dword [ebp - 4]
mov edx, 0x50e558
call fcn.004054e0
mov eax, dword [ebp - 0x1f0]
call fcn.00405658
mov edx, eax
mov ecx, 0x50e51c
mov eax, dword [0x51984c]
mov eax, dword [eax]
call fcn.00478c38
cmp eax, 6
je 0x50dbe7
call fcn.00404c98
jmp 0x50e4e5
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x774]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50de49
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x51974c]
push dword [eax]
mov eax, dword [0x5193c8]
push dword [eax]
push 0x50e59c
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50dca1
cmp byte [ebp - 0xd], 0
je 0x50dc93
mov eax, dword [0x5194d0]
cmp byte [eax], 0
je 0x50dc93
push 0x24
lea eax, [ebp - 0x1f4]
mov ecx, dword [ebp - 4]
mov edx, 0x50e558
call fcn.004054e0
mov eax, dword [ebp - 0x1f4]
call fcn.00405658
mov edx, eax
mov ecx, 0x50e51c
mov eax, dword [0x51984c]
mov eax, dword [eax]
call fcn.00478c38
cmp eax, 6
je 0x50dc93
call fcn.00404c98
jmp 0x50e4e5
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x51974c]
push dword [eax]
mov eax, dword [0x519b30]
push dword [eax]
push 0x50e5ac
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50dd34
cmp byte [ebp - 0xd], 0
je 0x50dd26
mov eax, dword [0x5194d0]
cmp byte [eax], 0
je 0x50dd26
push 0x24
lea eax, [ebp - 0x1f8]
mov ecx, dword [ebp - 4]
mov edx, 0x50e558
call fcn.004054e0
mov eax, dword [ebp - 0x1f8]
call fcn.00405658
mov edx, eax
mov ecx, 0x50e51c
mov eax, dword [0x51984c]
mov eax, dword [eax]
call fcn.00478c38
cmp eax, 6
je 0x50dd26
call fcn.00404c98
jmp 0x50e4e5
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x51974c]
push dword [eax]
mov eax, dword [0x519b30]
push dword [eax]
push 0x50e5bc
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50dd75
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x51974c]
push dword [eax]
mov eax, dword [0x519b30]
push dword [eax]
push 0x50e5d0
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50de08
cmp byte [ebp - 0xd], 0
je 0x50ddfa
mov eax, dword [0x5194d0]
cmp byte [eax], 0
je 0x50ddfa
push 0x24
lea eax, [ebp - 0x1fc]
mov ecx, dword [ebp - 4]
mov edx, 0x50e558
call fcn.004054e0
mov eax, dword [ebp - 0x1fc]
call fcn.00405658
mov edx, eax
mov ecx, 0x50e51c
mov eax, dword [0x51984c]
mov eax, dword [eax]
call fcn.00478c38
cmp eax, 6
je 0x50ddfa
call fcn.00404c98
jmp 0x50e4e5
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x51974c]
push dword [eax]
mov eax, dword [0x519b30]
push dword [eax]
push 0x50e5e4
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50de49
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x778]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50df96
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x5195f8]
push dword [eax]
mov eax, dword [0x519b34]
push dword [eax]
push 0x50e5fc
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50defc
cmp byte [ebp - 0xd], 0
je 0x50deee
mov eax, dword [0x5194d0]
cmp byte [eax], 0
je 0x50deee
push 0x24
lea eax, [ebp - 0x200]
mov ecx, dword [ebp - 4]
mov edx, 0x50e558
call fcn.004054e0
mov eax, dword [ebp - 0x200]
call fcn.00405658
mov edx, eax
mov ecx, 0x50e51c
mov eax, dword [0x51984c]
mov eax, dword [eax]
call fcn.00478c38
cmp eax, 6
je 0x50deee
call fcn.00404c98
jmp 0x50e4e5
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x5195f8]
push dword [eax]
mov eax, dword [0x519b34]
push dword [eax]
push 0x50e610
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50df96
cmp byte [ebp - 0xd], 0
je 0x50df88
mov eax, dword [0x5194d0]
cmp byte [eax], 0
je 0x50df88
push 0x24
lea eax, [ebp - 0x204]
mov ecx, dword [ebp - 4]
mov edx, 0x50e558
call fcn.004054e0
mov eax, dword [ebp - 0x204]
call fcn.00405658
mov edx, eax
mov ecx, 0x50e51c
mov eax, dword [0x51984c]
mov eax, dword [eax]
call fcn.00478c38
cmp eax, 6
je 0x50df88
call fcn.00404c98
jmp 0x50e4e5
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x77c]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50dfe6
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x5195f8]
push dword [eax]
push 0x50e628
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2f4
test al, al
je 0x50dfe6
mov eax, dword [ebp - 4]
call fcn.004f2584
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x780]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50e071
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x5195f8]
push dword [eax]
push 0x50e63c
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2f4
test al, al
je 0x50e036
mov eax, dword [ebp - 4]
call fcn.004f2584
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x5195f8]
push dword [eax]
push 0x50e654
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2f4
test al, al
je 0x50e071
mov eax, dword [ebp - 4]
call fcn.004f2584
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x784]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50e13f
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x519ab0]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2f4
test al, al
je 0x50e0c0
mov eax, dword [ebp - 4]
call fcn.004f2584
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x5197bc]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50e13f
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1ec]
call fcn.00403944
xor eax, eax
push ebp
push 0x50e138
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1ec]
call fcn.004036e0
call fcn.00403120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e13f
lea eax, [ebp - 0x1ec]
call fcn.00403a00
call fcn.00403120
ret
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x788]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50e2d3
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x519894]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50e2d3
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50e2d3
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 8], 0
je 0x50e2c7
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x519b6c]
push dword [eax]
push dword [ebp - 8]
push 0x50e66c
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040555c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1ec]
call fcn.00403944
xor eax, eax
push ebp
push 0x50e245
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1ec]
call fcn.004036e0
call fcn.00403120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e24c
lea eax, [ebp - 0x1ec]
call fcn.00403a00
call fcn.00403120
ret
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x50e1b9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78c]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50e354
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x519874]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2f4
test al, al
je 0x50e31e
mov eax, dword [ebp - 4]
call fcn.004f2584
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x519244]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2f4
test al, al
je 0x50e354
mov eax, dword [ebp - 4]
call fcn.004f2584
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x790]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50e39f
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b18]
push dword [eax]
mov eax, dword [0x519820]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2f4
test al, al
je 0x50e39f
mov eax, dword [ebp - 4]
call fcn.004f2584
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x794]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
je 0x50e4aa
mov eax, dword [0x519618]
push dword [eax]
mov eax, dword [0x519b20]
push dword [eax]
mov eax, dword [0x519a34]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040555c
mov eax, dword [ebp - 4]
call fcn.0040a2ac
test al, al
je 0x50e4aa
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4286b8]
call fcn.00428770
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x50e4a3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 0x1c]
call fcn.00409cbc
mov ecx, dword [ebp - 0x20c]
lea eax, [ebp - 0x208]
mov edx, 0x50e6c4
call fcn.004054e0
mov ecx, dword [ebp - 0x208]
mov edx, 0x50e6b4
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 0
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0x1c]
call fcn.00409cbc
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
mov edx, 0x50e6d8
call fcn.004054e0
mov ecx, dword [ebp - 0x210]
mov edx, 0x50e6b4
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 4]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x1f4
jne 0x50e40f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e4aa
mov eax, dword [ebp - 0x14]
call fcn.00404338
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e4c7
mov eax, dword [ebp - 0x18]
call fcn.00404338
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e517
lea eax, [ebp - 0x214]
mov edx, 0xa
call fcn.004051ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.004051ec
ret