Function at 0x5d418c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x5d4195
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0x15], cl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405988
xor eax, eax
push ebp
push 0x5d44d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040b170
mov dl, 1
mov eax, dword [0x4ea854]
call fcn.00404560
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x28]
mov eax, dword [0x5eaad4]
mov eax, dword [eax]
call fcn.0047fae0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040b13c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, 0x5d44ec
call fcn.004057e4
mov eax, dword [ebp - 8]
call fcn.0040adcc
test al, al
jne 0x5d4223
mov esi, 1
mov eax, dword [ebp - 0x1c]
call fcn.00404590
jmp 0x5d44ab
xor eax, eax
push ebp
push 0x5d4246
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.0041fed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d4267
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5d4278
cmp eax, 0xdf1ef
je 0x5d428c
mov esi, 1
mov eax, dword [ebp - 0x1c]
call fcn.00404590
jmp 0x5d44ab
mov eax, dword [ebp - 0x1c]
call fcn.004eae80
cmp eax, 0x55b9
je 0x5d42ad
mov esi, 1
mov eax, dword [ebp - 0x1c]
call fcn.00404590
jmp 0x5d44ab
mov eax, dword [ebp - 0x1c]
call fcn.004eab20
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5d42c7
cmp eax, 0x1e1000
je 0x5d42db
mov esi, 1
mov eax, dword [ebp - 0x1c]
call fcn.00404590
jmp 0x5d44ab
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.005225e8
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0041fe04
mov eax, ebx
call fcn.00404590
mov edx, dword [0x5eac14]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.005d3310
test al, al
jne 0x5d4314
mov eax, 0x5d44fc
call fcn.004518b0
mov eax, dword [ebp - 0x1c]
call fcn.0041fe88
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.0041fed8
mov eax, dword [ebp - 0x14]
call fcn.00405998
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 0x1c]
call fcn.005d3af8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b13c
cmp dword [ebp - 0xc], 0
je 0x5d436c
mov eax, dword [ebp - 0xc]
call fcn.004ad5b0
test al, al
jne 0x5d436c
mov esi, 4
mov eax, dword [ebp - 0x1c]
call fcn.00404590
jmp 0x5d44ab
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
mov ebx, eax
cmp ebx, 0x1e8480
jl 0x5d4392
mov eax, ebx
mov ecx, 0x2710
cdq
idiv ecx
inc eax
imul eax, eax, 0x2710
mov ebx, eax
jmp 0x5d4397
mov ebx, 0x1e8480
mov cx, 2
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.0041f684
inc eax
sub ebx, eax
jl 0x5d43d3
inc ebx
mov eax, 0xff
call fcn.00403334
mov byte [ebp - 0x1d], al
lea edx, [ebp - 0x1d]
mov ecx, 1
mov eax, dword [ebp - 0x1c]
call fcn.0041f8e8
dec ebx
jne 0x5d43b3
mov edx, 0x12d591
mov eax, dword [ebp - 0x1c]
call fcn.004ea9a8
mov edx, 0x320
mov eax, dword [ebp - 0x1c]
call fcn.004ea9a8
movzx edx, byte [ebp - 0x15]
mov eax, dword [ebp - 0x1c]
call fcn.004eaa80
mov dl, 1
mov eax, dword [ebp - 0x1c]
call fcn.0059e648
test al, al
je 0x5d44ab
push 0x5d4520
lea edx, [ebp - 0x30]
mov eax, dword [0x5eaad4]
mov eax, dword [eax]
call fcn.0047fae0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040b13c
lea eax, [ebp - 0x2c]
mov edx, 0x5d4534
call fcn.004057a0
mov edx, dword [ebp - 0x2c]
mov cl, 1
mov eax, dword [ebp - 0x1c]
call fcn.005d3fd8
test al, al
jne 0x5d444f
mov esi, 2
jmp 0x5d44ab
mov eax, dword [ebp - 0x1c]
call fcn.005d40c8
test al, al
jne 0x5d4462
mov esi, 3
jmp 0x5d44ab
xor eax, eax
push ebp
push 0x5d4485
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
call fcn.0041fe04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d44a3
mov eax, dword [ebp - 0x1c]
call fcn.00404590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d44da
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.004054f8
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004054f8
ret