Function at 0x4857d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519951
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1434
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x1430], eax
push ebx
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1448]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, 0x22b
lea edi, [esp + 0x2dc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0x10], ebx
movsb byte es:[edi], byte [esi]
call fcn.00488210
lea ecx, [esp + 0x14]
call fcn.00484740
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1450], 0
call fcn.004916c6
push 0
push 0
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x145c], 1
call fcn.00491c12
test eax, eax
setne al
test al, al
jne 0x4858e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
push 3
lea eax, [esp + 0x48]
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
call fcn.00458760
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x94]
push ecx
push str.error_code__d__openfile__s_.
mov byte [esp + 0x14dc], 2
call fcn.00468970
mov eax, dword [esp + 0xcc]
lea edx, [esp + 0xd0]
add esp, 0x8c
cmp eax, edx
je 0x4859f3
push eax
call fcn.004d5b05
jmp 0x4859f0
push 0x8af
lea eax, [esp + 0xb90]
push eax
lea ecx, [esp + 0x34]
call fcn.004913ba
cmp eax, 0x8af
je 0x48591c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_code__d__read.
call fcn.00468970
add esp, 8
jmp 0x4859f3
push 0x216
lea ecx, [esp + 0xc8]
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 + 0x2f8]
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 0x4859f3
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0xc8], 1
mov dword [esp + 0xd0], 0x8af
mov dword [esp + 0xcc], ebx
call fcn.00484c60
lea ecx, [esp + 0x2c]
call fcn.00491660
lea eax, [esp + 0x4c0]
push eax
sub esp, 0x18
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.004847a0
mov eax, dword [esp + 0x2c]
push eax
call fcn.00481a50
add esp, 0x20
test eax, eax
jne 0x4859f3
push str.Error__UpdateODMFilePackage...
call fcn.00468970
add esp, 4
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov edx, ecx
sub edx, edi
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x485af3
xor ebx, ebx
cmp esi, eax
jb 0x485a2b
call fcn.004d84ce
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp dword [ebx + edi + 4], 0
je 0x485a67
sub ecx, edi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x485a52
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 0x485a87
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 0x485ac7
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 0x485ab8
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 edi, dword [esp + 0x20]
mov edx, ecx
sub edx, edi
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 0x485a2b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1450], 0
call fcn.0049187d
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x485b17
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 + 0x1448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1430]
xor ecx, esp
call fcn.004d6555
mov esp, ebp
pop ebp
ret