Function at 0x49db30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5498d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
push esi
mov esi, ecx
push edi
push 0xa
lea ecx, [ebp - 0x48]
call fcn.00510deb
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], 0
mov edi, dword [eax]
mov eax, dword [edi - 8]
test eax, eax
mov eax, dword [edx]
setne cl
mov dword [ebp - 0x24], ecx
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x49dba3
test cl, cl
je 0x49db9f
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x49dba3
add eax, 2
add edi, 2
test cl, cl
jne 0x49db7b
xor eax, eax
jmp 0x49dba8
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [ebp + 8]
mov dword [ebp + 8], 0x14
test eax, eax
sete al
and eax, 0xff
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0xc]
lea ebx, [ebp - 0x2c]
push ebx
lea ebx, [ebp - 0x54]
mov eax, dword [ecx]
mov ecx, dword [esi + 0x3c]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, dword [edi + 0x5c]
mov ecx, dword [esi + 0x39a8]
mov ebx, dword [edi + 0x58]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
shld edx, eax, cl
shl eax, cl
mov ecx, dword [ebp - 0x2c]
push 0
sub ecx, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x68]
push 2
push edx
push eax
sbb ebx, ecx
call fcn.004faa90
cmp ebx, edx
jg 0x49dcec
jl 0x49dc2a
cmp dword [ebp - 0x64], eax
jae 0x49dcec
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0x18]
test eax, eax
jne 0x49dcec
mov eax, dword [0x5ab980]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 3
push eax
mov byte [ebp - 4], 2
call fcn.0050e2a7
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push ecx
push 0x5641
push edx
mov byte [ebp - 4], 3
call fcn.0050e6da
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005128e4
lea eax, [ebp - 0x20]
push 0x5640
push eax
call fcn.00422640
add esp, 8
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00512a1d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005128e4
push 0x1d
lea ecx, [ebp - 0x18]
push 0x11
lea edx, [ebp - 0x1c]
push ecx
push edx
call fcn.0042e190
add esp, 0x10
cmp eax, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jne 0x49dcdb
call fcn.005128e4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005128e4
jmp 0x49dbbf
call fcn.005128e4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
jmp 0x49e1fa
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x3c]
push 0x80
mov eax, dword [ebx]
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [esi + 0x38]
mov eax, dword [ecx]
push ebx
push edi
push edx
call dword [eax + 0x14]
mov ebx, eax
test ebx, ebx
je 0x49df49
mov eax, dword [0x5ab980]
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x3c]
mov byte [ebp - 4], 5
mov edx, dword [ecx]
call dword [edx + 0x18]
test eax, eax
je 0x49dd41
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.00512a1d
jmp 0x49dd76
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.00441e60
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 6
mov ecx, dword [edx]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp + 8]
push str._s___s_
push eax
call fcn.0050e6c7
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.005128e4
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0x18]
test eax, eax
jne 0x49dda1
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x3c]
push 0x80
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp ebx, 0xfffffffd
je 0x49e049
cmp ebx, 0xffffffeb
je 0x49e086
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x49e0e5
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x49e142
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
push 0
jne 0x49e188
lea ecx, [ebp - 0x210]
call fcn.0042c900
mov ecx, dword [0x5ab980]
mov dword [ebp - 0x14], ecx
push 0
push ebx
push 3
lea edx, [ebp + 8]
push edi
push edx
lea ecx, [esi + 0x3ba4]
mov byte [ebp - 4], 8
mov dword [ebp - 0x1c], 0
call fcn.004bfef0
push 0
lea ecx, [ebp - 0x210]
call fcn.0042cdf0
push 3
push 0
push 0
push 0
push 0
push 0x5bf088
lea ecx, [ebp - 0x210]
call fcn.0051633b
mov dword [ebp - 0x18], 5
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push 0x567e
push ecx
call fcn.0050e6da
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x210]
push 0
push edx
call fcn.0042cff0
xor ebx, ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x210]
call fcn.0042d150
test eax, eax
jne 0x49e1d8
inc ebx
cmp ebx, 0xa
jl 0x49de6a
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
mov dword [ebp - 0x18], eax
jg 0x49de42
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x14]
push 0x567f
push eax
call fcn.0050e6da
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 0
push ecx
lea ecx, [ebp - 0x210]
call fcn.0042cff0
lea ecx, [ebp - 0x210]
call fcn.0042d140
mov ecx, dword [esi + 8]
push 1
call fcn.00471520
test eax, eax
jne 0x49de21
mov eax, dword [edi + 0xc0]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
lea edx, [eax + 1]
xor edx, eax
and edx, 0x1f
xor edx, eax
mov dword [edi + 0xc0], edx
call fcn.005128e4
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 5
call fcn.0042caf0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.005128e4
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x3c]
push 0x80
mov eax, dword [ebx]
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [esi + 0x38]
mov eax, dword [ecx]
push ebx
push edi
push edx
call dword [eax + 0x14]
mov ebx, eax
test ebx, ebx
jne 0x49dd1b
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x49dff3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x49dfcc
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x3c]
push 0x80
mov eax, dword [ebx]
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
push 0
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push ebx
call fcn.00512659
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 9
call fcn.00512659
mov ecx, dword [esi + 0x3c]
mov byte [ebp - 4], 0
mov edx, dword [ecx]
call dword [edx + 0x34]
test eax, eax
jne 0x49dfbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5680
push eax
push 2
push edi
push ebx
lea ecx, [esi + 0x3ba4]
mov dword [ebp - 0x10], eax
call fcn.004c0010
mov ecx, dword [esi + 0x3c]
mov edx, dword [edi + 0x3c]
mov ebx, dword [ebx]
push edx
mov eax, dword [ecx]
push ebx
call dword [eax + 0x2c]
mov edx, dword [edi + 0xc0]
or dl, 0x80
mov dword [edi + 0xc0], edx
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x49dff3
mov ecx, dword [ebp + 0xc]
push ecx
push edi
mov ecx, esi
call fcn.004a6190
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x3c]
mov ebx, dword [edi + 0x3c]
mov eax, dword [edx]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x2c]
mov esi, dword [esi + 0x3c]
mov ecx, dword [ebp + 0xc]
push ecx
push edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [edi + 0xc0]
lea ecx, [ebp - 0x48]
or al, 0x40
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xc0], eax
call fcn.00510e5f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 0x58]
mov ebx, dword [esi + 0x3990]
sub ebx, eax
push 0
mov dword [esi + 0x3990], ebx
mov ecx, dword [edi + 0x5c]
mov edx, dword [esi + 0x3994]
push 0xfffffffffffffffd
sbb edx, ecx
push 3
mov dword [esi + 0x3994], edx
lea edx, [ebp + 8]
push edi
push edx
lea ecx, [esi + 0x3ba4]
call fcn.004bfef0
jmp 0x49e1f3
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
push 0
je 0x49e0dd
mov ecx, dword [ebp - 0x10]
lea edx, [ebp + 8]
push ecx
push 2
push edi
push edx
lea ecx, [esi + 0x3ba4]
call fcn.004bfef0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.005128e4
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00510e5f
mov eax, 0xffffd8fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x10]
push eax
push 2
jmp 0x49e147
mov edx, dword [ebp - 0x10]
push 0
push edx
push 1
lea eax, [ebp + 8]
push edi
push eax
lea ecx, [esi + 0x3ba4]
call fcn.004bfef0
cmp ebx, 0xffffffea
je 0x49e157
cmp ebx, 0xffffffeb
je 0x49e0aa
cmp ebx, 0xfffffc7c
je 0x49e0aa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.005128e4
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00510e5f
mov eax, 0xffffd954
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push eax
push 1
lea ecx, [ebp + 8]
push edi
push ecx
lea ecx, [esi + 0x3ba4]
call fcn.004bfef0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.005128e4
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00510e5f
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push edx
push 3
push edi
push eax
lea ecx, [esi + 0x3ba4]
call fcn.004bfef0
cmp ebx, 0xffffffea
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
jne 0x49e0b1
call fcn.005128e4
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00510e5f
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.005128e4
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 5
call fcn.0042caf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.005128e4
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00510e5f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0xfffffc19
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10