Function at 0x4850e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5198fc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1684
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x1680], eax
push ebx
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1698]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x54], ecx
mov ecx, 0x22b
lea edi, [esp + 0x31c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edx
movsb byte es:[edi], byte [esi]
call fcn.00488210
lea ecx, [esp + 0x14]
call fcn.00484740
lea ecx, [esp + 0x3c]
mov dword [esp + 0x16a0], 0
call fcn.004916c6
push 0
push 0
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x16ac], 1
call fcn.00491c12
test eax, eax
setne al
test al, al
jne 0x485214
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x2c], eax
push 3
lea eax, [esp + 0x88]
push ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], eax
call fcn.00458760
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xb0]
push ecx
push str.error_code__d__openfile__s_.
mov byte [esp + 0x172c], 2
call fcn.00468970
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
add esp, 0x8c
cmp eax, edx
je 0x485667
push eax
call fcn.004d5b05
jmp 0x485664
push 0x8af
lea eax, [esp + 0xbd0]
push eax
lea ecx, [esp + 0x44]
call fcn.004913ba
cmp eax, 0x8af
je 0x48524a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_code__d__read.
call fcn.00468970
add esp, 8
jmp 0x485667
push 0x216
lea ecx, [esp + 0x108]
push 0
push ecx
call fcn.004d5720
push 0x8af
call fcn.004d5c5c
push 0x8af
mov ebx, eax
push 0
push ebx
call fcn.004d5720
mov ecx, 0x22b
lea esi, [esp + 0x338]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x52c840
push 0x20121015
push ebx
movsb byte es:[edi], byte [esi]
call fcn.0047d810
push 0x20121015
push 0x8af
push ebx
call fcn.0047d8a0
add esp, 0x34
test eax, eax
je 0x485667
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x108], 1
mov dword [esp + 0x110], 0x8af
mov dword [esp + 0x10c], ebx
call fcn.00484c60
push 8
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
call fcn.004913ba
cmp eax, 8
jne 0x485488
mov eax, dword [esp + 0x30]
cmp eax, 0x64
jne 0x48531c
mov ecx, dword [esp + 0x34]
push 1
push 0
push ecx
lea ecx, [esp + 0x48]
call fcn.00491449
jmp 0x48546f
mov edx, dword [esp + 0x34]
mov dword [esp + 0x104], eax
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x110], edx
call fcn.00484c60
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0047eb10
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x48546f
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x485382
call fcn.004d84ce
mov ecx, dword [esp + 0x20]
mov esi, edi
imul esi, esi, 0x216
lea edx, [esi + ecx]
push ebx
mov dword [esp + 0x30], edx
call fcn.004d5c5c
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x28]
mov edx, ecx
sub edx, dword [esp + 0x24]
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
cmp edi, eax
jb 0x4853cd
call fcn.004d84ce
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [esi + eax + 4], 0
je 0x48566b
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x4853f8
call fcn.004d84ce
mov edx, dword [esp + 0x20]
mov eax, dword [esi + edx + 4]
push ebx
push 0
push eax
call fcn.004d5720
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 0xc
cmp edi, ecx
jb 0x48542e
call fcn.004d84ce
mov edx, dword [esp + 0x20]
mov eax, dword [esi + edx + 4]
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.004913ba
cmp eax, ebx
jne 0x48548f
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x485467
call fcn.004d84ce
mov edx, dword [esp + 0x20]
mov dword [esi + edx + 8], ebx
push 8
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
call fcn.004913ba
cmp eax, 8
je 0x4852fc
push str.read_segment_file_end.
jmp 0x485494
push str.read_file_end.
call fcn.00468970
add esp, 4
push 0x216
lea ecx, [esp + 0x108]
push 0
push ecx
call fcn.004d5720
add esp, 0xc
push 0x100000
push 0
push 0
lea ecx, [esp + 0x64]
call fcn.004ad272
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push 0
push edi
push esi
lea edx, [esp + 0x74]
push edx
push ebx
mov byte [esp + 0x16c4], 3
call fcn.00477ac0
add esp, 0x24
lea ecx, [esp + 0x58]
test eax, eax
je 0x485527
mov dword [esp + 0x104], 0x64
call fcn.004ad3a6
lea ecx, [esp + 0x58]
mov dword [esp + 0x10c], eax
call fcn.004ad30b
mov dword [esp + 0x108], eax
jmp 0x485601
call fcn.004ad30b
test eax, eax
je 0x485539
push eax
call fcn.004d5b05
add esp, 4
test esi, esi
je 0x485561
push edi
push 0
push 0xfffffffffffffffc
call esi
add esp, 0xc
test al, al
jne 0x485561
lea ecx, [esp + 0x58]
mov byte [esp + 0x16a0], 1
call fcn.004ad648
jmp 0x485667
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x1486]
push edx
mov word [esp + 0x1488], cx
call fcn.004d5720
push 0
push 0
push 0
push 0
push edi
push esi
lea eax, [esp + 0x14a0]
push eax
push ebx
call fcn.00477540
add esp, 0x2c
test eax, eax
jne 0x4855b3
lea ecx, [esp + 0x58]
mov byte [esp + 0x16a0], 1
call fcn.004ad648
jmp 0x485667
test esi, esi
je 0x4855db
push edi
push 0
push 0
call esi
add esp, 0xc
test al, al
jne 0x4855db
lea ecx, [esp + 0x58]
mov byte [esp + 0x16a0], 1
call fcn.004ad648
jmp 0x485667
push 0x104
lea ecx, [esp + 0x1480]
push ecx
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x110], 0x64
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x18]
call fcn.00484c60
lea ecx, [esp + 0x58]
mov byte [esp + 0x16a0], 1
call fcn.004ad648
lea ecx, [esp + 0x3c]
call fcn.00491660
push edi
push esi
lea ecx, [esp + 0x508]
push ecx
sub esp, 0x18
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call fcn.004847a0
mov eax, dword [esp + 0x74]
push eax
call fcn.00481c90
add esp, 0x28
test eax, eax
jne 0x485667
push str.Error__UpdateODMFilePackage...
call fcn.00468970
add esp, 4
mov ecx, dword [esp + 0x24]
mov edx, ecx
sub edx, dword [esp + 0x20]
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x485763
xor ebx, ebx
cmp esi, eax
jb 0x485699
call fcn.004d84ce
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp dword [ebx + edi + 4], 0
je 0x4856d9
sub ecx, edi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x4856c4
call fcn.004d84ce
mov edi, dword [esp + 0x20]
mov edx, dword [ebx + edi + 4]
push edx
call fcn.004d5b05
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add esp, 4
sub ecx, edi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4856f9
call fcn.004d84ce
mov edi, dword [esp + 0x20]
lea ecx, [ebx + edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x485739
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x48572a
call fcn.004d84ce
mov ecx, dword [esp + 0x20]
lea edx, [ebx + ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x24]
mov edx, ecx
sub edx, dword [esp + 0x20]
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebx, 0x216
cmp esi, eax
jb 0x485699
lea ecx, [esp + 0x3c]
mov byte [esp + 0x16a0], 0
call fcn.0049187d
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x485787
push eax
call fcn.004910f4
add esp, 4
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.004910f4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1680]
xor ecx, esp
call fcn.004d6555
mov esp, ebp
pop ebp
ret