Function at 0x49b710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cf8e
mov eax, dword fs:[0]
push eax
mov eax, 0x2044
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 + 0x10]
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 + 0xc]
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 0x49b85f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x15b8], eax
lea edx, [ebp - 0x1ef4]
mov dword [ebp - 0x1ef8], edx
push 3
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1ef8]
call fcn.00470670
lea ecx, [ebp - 0x1ef8]
mov dword [ebp - 0x2048], ecx
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2048]
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 - 0x1ef8]
mov dword [ebp - 0x1f18], eax
lea ecx, [ebp - 0x1ef4]
cmp dword [ebp - 0x1f18], ecx
je 0x49b85a
mov edx, dword [ebp - 0x1f18]
push edx
call fcn.004f84cf
add esp, 4
jmp 0x49bdfe
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 0x49b8a4
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 0x49bdfe
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 0x49b959
jmp 0x49bdfe
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
mov edx, 1
test edx, edx
je 0x49bbc6
push 8
lea eax, [ebp - 0x17e8]
push eax
lea ecx, [ebp - 0x40]
call fcn.004b3322
mov dword [ebp - 0x17e0], eax
cmp dword [ebp - 0x17e0], 8
je 0x49b9c7
push str.read_segment_file_end.
call fcn.0047c040
add esp, 4
jmp 0x49bbc6
cmp dword [ebp - 0x17e8], 0x64
jne 0x49b9f5
push 1
mov ecx, dword [ebp - 0x17e4]
xor edx, edx
push edx
push ecx
lea ecx, [ebp - 0x40]
call fcn.004b33b1
mov dword [ebp - 0x17f4], eax
mov dword [ebp - 0x17f0], edx
jmp 0x49bbc1
mov eax, dword [ebp - 0x17e8]
mov dword [ebp - 0x1a14], eax
mov ecx, dword [ebp - 0x17e4]
mov dword [ebp - 0x1a0c], ecx
lea edx, [ebp - 0x1a14]
push edx
lea ecx, [ebp - 0x28]
call fcn.0049fd90
mov eax, dword [ebp - 0x17e8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004982d0
add esp, 8
mov dword [ebp - 0x1a18], eax
cmp dword [ebp - 0x1a18], 0xffffffff
jne 0x49ba43
jmp 0x49b988
mov edx, dword [ebp - 0x17e4]
mov dword [ebp - 0x17f8], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1a18], eax
jb 0x49ba6a
call fcn.004fb0ce
xor edx, edx
jne 0x49ba6a
mov eax, dword [ebp - 0x1a18]
imul eax, eax, 0x216
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1f88], eax
mov ecx, dword [ebp - 0x17f8]
push ecx
call fcn.004f8626
add esp, 4
mov edx, dword [ebp - 0x1f88]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1a18], eax
jb 0x49bab6
call fcn.004fb0ce
xor edx, edx
jne 0x49bab6
mov eax, dword [ebp - 0x1a18]
imul eax, eax, 0x216
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax + 4], 0
jne 0x49bad5
jmp 0x49bdfe
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1a18], eax
jb 0x49baf0
call fcn.004fb0ce
xor edx, edx
jne 0x49baf0
mov eax, dword [ebp - 0x17f8]
push eax
push 0
mov ecx, dword [ebp - 0x1a18]
imul ecx, ecx, 0x216
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx + 4]
push eax
call fcn.004f8090
add esp, 0xc
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1a18], eax
jb 0x49bb34
call fcn.004fb0ce
xor edx, edx
jne 0x49bb34
mov eax, dword [ebp - 0x1a18]
imul eax, eax, 0x216
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1f8c], eax
mov ecx, dword [ebp - 0x17f8]
push ecx
mov edx, dword [ebp - 0x1f8c]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x40]
call fcn.004b3322
mov dword [ebp - 0x17e0], eax
mov ecx, dword [ebp - 0x17e0]
cmp ecx, dword [ebp - 0x17f8]
je 0x49bb89
push str.read_file_end.
call fcn.0047c040
add esp, 4
jmp 0x49bbc6
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1a18], eax
jb 0x49bba4
call fcn.004fb0ce
xor edx, edx
jne 0x49bba4
mov eax, dword [ebp - 0x1a18]
imul eax, eax, 0x216
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x17f8]
mov dword [ecx + eax + 8], edx
jmp 0x49b988
mov dword [ebp - 0x1c34], 0
push 0x212
push 0
lea eax, [ebp - 0x1c30]
push eax
call fcn.004f8090
add esp, 0xc
push 0x216
push 0
lea ecx, [ebp - 0x1c34]
push ecx
call fcn.004f8090
add esp, 0xc
push 0x100000
push 0
push 0
lea ecx, [ebp - 0x1c5c]
call fcn.004d0080
mov byte [ebp - 4], 3
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1c5c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048d860
add esp, 0x24
test eax, eax
je 0x49bc7d
mov dword [ebp - 0x1c34], 0x64
lea ecx, [ebp - 0x1c5c]
call fcn.004d01b4
mov dword [ebp - 0x1c2c], eax
lea ecx, [ebp - 0x1c5c]
call fcn.004d0119
mov dword [ebp - 0x1c30], eax
lea eax, [ebp - 0x1c34]
push eax
lea ecx, [ebp - 0x28]
call fcn.0049fd90
jmp 0x49bd90
lea ecx, [ebp - 0x1c5c]
call fcn.004d0119
mov dword [ebp - 0x1e70], eax
cmp dword [ebp - 0x1e70], 0
je 0x49bca6
mov ecx, dword [ebp - 0x1e70]
push ecx
call fcn.004f84cf
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x49bcd5
mov edx, dword [ebp + 0x18]
push edx
push 0
push 0xfffffffffffffffc
call dword [ebp + 0x14]
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x49bcd5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c5c]
call fcn.004d0456
jmp 0x49bdfe
xor ecx, ecx
mov word [ebp - 0x1e6c], cx
push 0x208
push 0
lea edx, [ebp - 0x1e6a]
push edx
call fcn.004f8090
add esp, 0xc
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1e6c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048d140
add esp, 0x20
test eax, eax
jne 0x49bd2f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c5c]
call fcn.004d0456
jmp 0x49bdfe
cmp dword [ebp + 0x14], 0
je 0x49bd5e
mov ecx, dword [ebp + 0x18]
push ecx
push 0
push 0
call dword [ebp + 0x14]
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x49bd5e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c5c]
call fcn.004d0456
jmp 0x49bdfe
mov dword [ebp - 0x1c34], 0x64
push 0x104
lea eax, [ebp - 0x1e6c]
push eax
lea ecx, [ebp - 0x1c28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [ebp - 0x1c34]
push edx
lea ecx, [ebp - 0x28]
call fcn.0049fd90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c5c]
call fcn.004d0456
lea ecx, [ebp - 0x40]
call fcn.004b35c8
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x718]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1efc], esp
lea eax, [ebp - 0x28]
push eax
call fcn.0049fab0
mov dword [ebp - 0x204c], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00498580
add esp, 0x28
mov dword [ebp - 0x2050], eax
mov edx, dword [ebp - 0x2050]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x49bdfe
push str.Error__UpdateODMFilePackage...
call fcn.0047c040
add esp, 4
mov dword [ebp - 0x1e74], 0
jmp 0x49be19
mov eax, dword [ebp - 0x1e74]
add eax, 1
mov dword [ebp - 0x1e74], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1e74], eax
jae 0x49bf29
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1e74], eax
jb 0x49be4e
call fcn.004fb0ce
xor edx, edx
jne 0x49be4e
mov eax, dword [ebp - 0x1e74]
imul eax, eax, 0x216
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax + 4], 0
je 0x49bea3
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1e74], eax
jb 0x49be83
call fcn.004fb0ce
xor edx, edx
jne 0x49be83
mov eax, dword [ebp - 0x1e74]
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 - 0x1e74], eax
jb 0x49bebe
call fcn.004fb0ce
xor edx, edx
jne 0x49bebe
mov eax, dword [ebp - 0x1e74]
imul eax, eax, 0x216
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2020], eax
mov ecx, dword [ebp - 0x2020]
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x49bf24
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x1e74], eax
jb 0x49bf06
call fcn.004fb0ce
xor edx, edx
jne 0x49bf06
mov eax, dword [ebp - 0x1e74]
imul eax, eax, 0x216
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x49be0a
mov dword [ebp - 0x1f00], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004b37e5
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.004a06c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2044], eax
mov ecx, dword [ebp - 0x2044]
push ecx
call fcn.004b3044
add esp, 4
mov eax, dword [ebp - 0x1f00]
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