Function at 0x436590
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489fbc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1684
call fcn.00465640
mov eax, dword [0x4bdbb0]
xor eax, esp
mov dword [esp + 0x1680], eax
push ebx
push esi
push edi
mov eax, dword [0x4bdbb0]
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.00439670
lea ecx, [esp + 0x14]
call fcn.0041f1a0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x16a0], 0
call fcn.004411de
push 0
push 0
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x16ac], 1
call fcn.004415db
test eax, eax
setne al
test al, al
jne 0x4366c4
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.004170e0
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.00427230
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
add esp, 0x8c
cmp eax, edx
je 0x436b17
push eax
call fcn.00463c35
jmp 0x436b14
push 0x8af
lea eax, [esp + 0xbd0]
push eax
lea ecx, [esp + 0x44]
call fcn.00440ed2
cmp eax, 0x8af
je 0x4366fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_code__d__read.
call fcn.00427230
add esp, 8
jmp 0x436b17
push 0x216
lea ecx, [esp + 0x108]
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 + 0x338]
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 0x436b17
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.004361c0
push 8
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
call fcn.00440ed2
cmp eax, 8
jne 0x436938
mov eax, dword [esp + 0x30]
cmp eax, 0x64
jne 0x4367cc
mov ecx, dword [esp + 0x34]
push 1
push 0
push ecx
lea ecx, [esp + 0x48]
call fcn.00440f61
jmp 0x43691f
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.004361c0
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00432370
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x43691f
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 0x436832
call fcn.00465d0f
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.00463d12
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 0x43687d
call fcn.00465d0f
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [esi + eax + 4], 0
je 0x436b1b
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x4368a8
call fcn.00465d0f
mov edx, dword [esp + 0x20]
mov eax, dword [esi + edx + 4]
push ebx
push 0
push eax
call fcn.00463850
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 0x4368de
call fcn.00465d0f
mov edx, dword [esp + 0x20]
mov eax, dword [esi + edx + 4]
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00440ed2
cmp eax, ebx
jne 0x43693f
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 0x436917
call fcn.00465d0f
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.00440ed2
cmp eax, 8
je 0x4367ac
push str.read_segment_file_end.
jmp 0x436944
push str.read_file_end.
call fcn.00427230
add esp, 4
push 0x216
lea ecx, [esp + 0x108]
push 0
push ecx
call fcn.00463850
add esp, 0xc
push 0x100000
push 0
push 0
lea ecx, [esp + 0x64]
call fcn.004516d4
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.0042edb0
add esp, 0x24
lea ecx, [esp + 0x58]
test eax, eax
je 0x4369d7
mov dword [esp + 0x104], 0x64
call fcn.004517cb
lea ecx, [esp + 0x58]
mov dword [esp + 0x10c], eax
call fcn.00451730
mov dword [esp + 0x108], eax
jmp 0x436ab1
call fcn.00451730
test eax, eax
je 0x4369e9
push eax
call fcn.00463c35
add esp, 4
test esi, esi
je 0x436a11
push edi
push 0
push 0xfffffffffffffffc
call esi
add esp, 0xc
test al, al
jne 0x436a11
lea ecx, [esp + 0x58]
mov byte [esp + 0x16a0], 1
call fcn.00451a66
jmp 0x436b17
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x1486]
push edx
mov word [esp + 0x1488], cx
call fcn.00463850
push 0
push 0
push 0
push 0
push edi
push esi
lea eax, [esp + 0x14a0]
push eax
push ebx
call fcn.0042e750
add esp, 0x2c
test eax, eax
jne 0x436a63
lea ecx, [esp + 0x58]
mov byte [esp + 0x16a0], 1
call fcn.00451a66
jmp 0x436b17
test esi, esi
je 0x436a8b
push edi
push 0
push 0
call esi
add esp, 0xc
test al, al
jne 0x436a8b
lea ecx, [esp + 0x58]
mov byte [esp + 0x16a0], 1
call fcn.00451a66
jmp 0x436b17
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.004361c0
lea ecx, [esp + 0x58]
mov byte [esp + 0x16a0], 1
call fcn.00451a66
lea ecx, [esp + 0x3c]
call fcn.00441178
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.00435e30
mov eax, dword [esp + 0x74]
push eax
call fcn.00433c00
add esp, 0x28
test eax, eax
jne 0x436b17
push str.Error__UpdateODMFilePackage...
call fcn.00427230
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 0x436c13
xor ebx, ebx
cmp esi, eax
jb 0x436b49
call fcn.00465d0f
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp dword [ebx + edi + 4], 0
je 0x436b89
sub ecx, edi
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x436b74
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 0x436ba9
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 0x436be9
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 0x436bda
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 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 0x436b49
lea ecx, [esp + 0x3c]
mov byte [esp + 0x16a0], 0
call fcn.004412b9
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x436c37
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 + 0x1698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1680]
xor ecx, esp
call fcn.004644d0
mov esp, ebp
pop ebp
ret