Function at 0x49bf90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cfe3
mov eax, dword fs:[0]
push eax
mov eax, 0x18d0
call fcn.004fa800
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x48], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x900], 0
mov esi, dword [ebp + 0xc]
mov ecx, 0x22b
lea edi, [ebp - 0x8fc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov word [ebp - 0xd04], ax
push 0x3fe
push 0
lea ecx, [ebp - 0xd02]
push ecx
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0x2c], 0
call fcn.004a5750
lea ecx, [ebp - 0x28]
call fcn.0049f9d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004b362e
mov byte [ebp - 4], 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x40]
call fcn.004b3b7a
test eax, eax
setne al
mov byte [ebp - 0x2d], al
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
jne 0x49c0df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x15b8], eax
lea edx, [ebp - 0x1860]
mov dword [ebp - 0x1864], edx
push 3
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1864]
call fcn.00470670
lea ecx, [ebp - 0x1864]
mov dword [ebp - 0x18d4], ecx
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x18d4]
sub esp, 0x84
mov ecx, 0x21
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x15b8]
push edx
push str.error_code__d__openfile__s_.
call fcn.0047c040
add esp, 0x8c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1864]
mov dword [ebp - 0x1884], eax
lea ecx, [ebp - 0x1860]
cmp dword [ebp - 0x1884], ecx
je 0x49c0da
mov edx, dword [ebp - 0x1884]
push edx
call fcn.004f84cf
add esp, 4
jmp 0x49c25f
push 0x8af
lea eax, [ebp - 0x15b4]
push eax
lea ecx, [ebp - 0x40]
call fcn.004b3322
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x8af
je 0x49c124
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x15bc], eax
mov ecx, dword [ebp - 0x15bc]
push ecx
push str.error_code__d__read.
call fcn.0047c040
add esp, 8
jmp 0x49c25f
mov dword [ebp - 0x17dc], 0
push 0x212
push 0
lea edx, [ebp - 0x17d8]
push edx
call fcn.004f8090
add esp, 0xc
push 0x216
push 0
lea eax, [ebp - 0x17dc]
push eax
call fcn.004f8090
add esp, 0xc
push 0x8af
call fcn.004f8626
add esp, 4
mov dword [ebp - 0x15c0], eax
push 0x8af
push 0
mov ecx, dword [ebp - 0x15c0]
push ecx
call fcn.004f8090
add esp, 0xc
push 0x8af
lea edx, [ebp - 0x8fc]
push edx
mov eax, dword [ebp - 0x15c0]
push eax
call fcn.004f8140
add esp, 0xc
push 0x553788
push 0x20121015
mov ecx, dword [ebp - 0x15c0]
push ecx
call fcn.00497e70
add esp, 0xc
push 0x20121015
push 0x8af
mov edx, dword [ebp - 0x15c0]
push edx
call fcn.00497f00
add esp, 0xc
test eax, eax
jne 0x49c1d9
jmp 0x49c25f
mov dword [ebp - 0x17dc], 1
mov dword [ebp - 0x17d4], 0x8af
mov eax, dword [ebp - 0x15c0]
mov dword [ebp - 0x17d8], eax
lea ecx, [ebp - 0x17dc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0049fd90
lea ecx, [ebp - 0x40]
call fcn.004b35c8
lea edx, [ebp - 0x718]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1868], esp
lea eax, [ebp - 0x28]
push eax
call fcn.0049fab0
mov dword [ebp - 0x18d8], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00498350
add esp, 0x20
mov dword [ebp - 0x18dc], eax
mov edx, dword [ebp - 0x18dc]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x49c25f
push str.Error__UpdateODMFilePackage...
call fcn.0047c040
add esp, 4
mov dword [ebp - 0x17e0], 0
jmp 0x49c27a
mov eax, dword [ebp - 0x17e0]
add eax, 1
mov dword [ebp - 0x17e0], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x17e0], eax
jae 0x49c38a
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x17e0], eax
jb 0x49c2af
call fcn.004fb0ce
xor edx, edx
jne 0x49c2af
mov eax, dword [ebp - 0x17e0]
imul eax, eax, 0x216
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax + 4], 0
je 0x49c304
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x17e0], eax
jb 0x49c2e4
call fcn.004fb0ce
xor edx, edx
jne 0x49c2e4
mov eax, dword [ebp - 0x17e0]
imul eax, eax, 0x216
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 4]
push edx
call fcn.004f84cf
add esp, 4
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x17e0], eax
jb 0x49c31f
call fcn.004fb0ce
xor edx, edx
jne 0x49c31f
mov eax, dword [ebp - 0x17e0]
imul eax, eax, 0x216
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18ac], eax
mov ecx, dword [ebp - 0x18ac]
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x49c385
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x17e0], eax
jb 0x49c367
call fcn.004fb0ce
xor edx, edx
jne 0x49c367
mov eax, dword [ebp - 0x17e0]
imul eax, eax, 0x216
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x49c26b
mov dword [ebp - 0x186c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004b37e5
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004a06c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18d0], eax
mov ecx, dword [ebp - 0x18d0]
push ecx
call fcn.004b3044
add esp, 4
mov eax, dword [ebp - 0x186c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret