Function at 0x436c80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48a011
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1434
call fcn.00465640
mov eax, dword [0x4bdbb0]
xor eax, esp
mov dword [esp + 0x1430], eax
push ebx
push esi
push edi
mov eax, dword [0x4bdbb0]
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.00439670
lea ecx, [esp + 0x14]
call fcn.0041f1a0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1450], 0
call fcn.004411de
push 0
push 0
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x145c], 1
call fcn.004415db
test eax, eax
setne al
test al, al
jne 0x436d96
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.004170e0
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.00427230
mov eax, dword [esp + 0xcc]
lea edx, [esp + 0xd0]
add esp, 0x8c
cmp eax, edx
je 0x436ea3
push eax
call fcn.00463c35
jmp 0x436ea0
push 0x8af
lea eax, [esp + 0xb90]
push eax
lea ecx, [esp + 0x34]
call fcn.00440ed2
cmp eax, 0x8af
je 0x436dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_code__d__read.
call fcn.00427230
add esp, 8
jmp 0x436ea3
push 0x216
lea ecx, [esp + 0xc8]
push 0
push ecx
call fcn.00463850
push 0x8af
call fcn.00463d12
push 0x8af
mov ebx, eax
push 0
push ebx
call fcn.00463850
mov ecx, 0x22b
lea esi, [esp + 0x2f8]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push str.CDGOUT
push 0x20121015
push ebx
movsb byte es:[edi], byte [esi]
call fcn.00431720
push 0x20121015
push 0x8af
push ebx
call fcn.004317b0
add esp, 0x34
test eax, eax
je 0x436ea3
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.004361c0
lea ecx, [esp + 0x2c]
call fcn.00441178
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.00435e30
mov eax, dword [esp + 0x2c]
push eax
call fcn.004339c0
add esp, 0x20
test eax, eax
jne 0x436ea3
push str.Error__UpdateODMFilePackage...
call fcn.00427230
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 0x436fa3
xor ebx, ebx
cmp esi, eax
jb 0x436edb
call fcn.00465d0f
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp dword [ebx + edi + 4], 0
je 0x436f17
sub ecx, edi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x436f02
call fcn.00465d0f
mov edi, dword [esp + 0x20]
mov edx, dword [ebx + edi + 4]
push edx
call fcn.00463c35
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 0x436f37
call fcn.00465d0f
mov edi, dword [esp + 0x20]
lea ecx, [ebx + edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x436f77
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 0x436f68
call fcn.00465d0f
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 0x436edb
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1450], 0
call fcn.004412b9
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x436fc7
push eax
call fcn.00440d2e
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.00440d2e
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.004644d0
mov esp, ebp
pop ebp
ret