Function at 0x418880
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da177
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x510918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xb4], 0
xor eax, eax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], eax
call fcn.0043859b
test al, al
jne 0x41895d
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x418956
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov byte [ebp - 0x18], al
push 0x23
push str.Couldnt_create_temporary_directory
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00404c90
lea eax, [ebp - 0x30]
push eax
push eax
push 0x311
push str.Elements::CUpdater::ApplyPatchToZip
push 3
call fcn.00428590
add esp, 0x14
cmp dword [ebp - 0x1c], 8
jb 0x418956
push dword [ebp - 0x30]
call fcn.004a295f
add esp, 4
xor bl, bl
jmp 0x418aff
push 0x4ed5f0
lea ecx, [ebp - 0x48]
call fcn.00403110
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0042ef6b
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], 8
jb 0x418998
push dword [ebp - 0x48]
call fcn.004a295f
add esp, 4
xor eax, eax
push 0x4ed5f8
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
call fcn.00403110
lea eax, [ebp - 0x90]
push eax
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 5
call fcn.0042ef6b
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x7c], 8
jb 0x4189f0
push dword [ebp - 0x90]
call fcn.004a295f
add esp, 4
xor eax, eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x60]
push eax
push esi
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
call fcn.00418d70
test al, al
je 0x418ab3
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.00418d70
test al, al
je 0x418ab3
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00418210
test al, al
jne 0x418b31
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x418ab3
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov byte [ebp - 0x18], al
push 0x1e
push str.Couldnt_apply_pachest_to_zip
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.00404c90
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x30]
call fcn.00402a00
lea eax, [ebp - 0x30]
push eax
push eax
push 0x31c
push str.Elements::CUpdater::ApplyPatchToZip
push 3
call fcn.00428590
add esp, 0x14
cmp dword [ebp - 0x1c], 8
jb 0x418ab3
push dword [ebp - 0x30]
call fcn.004a295f
add esp, 4
xor bl, bl
cmp dword [ebp - 0x64], 8
jb 0x418ac6
push dword [ebp - 0x78]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x4c], 8
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
jb 0x418aeb
push dword [ebp - 0x60]
call fcn.004a295f
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.00438504
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a2964
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x14], 8
jb 0x418b3b
mov eax, dword [esi]
jmp 0x418b3d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x418bb5
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x418bb5
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov byte [ebp - 0x18], al
push 0x16
push str.Couldnt_remove_patch
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.00404c90
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x30]
call fcn.00402a00
lea eax, [ebp - 0x30]
push eax
push eax
push 0x321
push str.Elements::CUpdater::ApplyPatchToZip
push 3
call fcn.00428590
add esp, 0x14
cmp dword [ebp - 0x1c], 8
jb 0x418bb5
push dword [ebp - 0x30]
call fcn.004a295f
add esp, 4
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 8
jb 0x418bcd
mov eax, dword [edi]
jmp 0x418bcf
mov eax, edi
push eax
lea ecx, [ebp - 0x48]
call fcn.00403110
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0x48]
cmovae ecx, dword [ebp - 0x48]
push eax
mov ebx, 1
push ecx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xd0], 0x4990b8
mov dword [ebp - 0xcc], 0x4990d0
mov dword [ebp - 0xc8], 0x4990e8
mov dword [ebp - 0xc4], 0x4990f6
mov dword [ebp - 0xc0], 0x499128
mov dword [ebp - 0xbc], 0x499136
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xd4], 0x44cb75
call fcn.0044ee3a
mov esi, eax
add esp, 8
mov dword [ebp - 0xb0], esi
test esi, esi
je 0x418ca2
push 0x4ed438
lea ecx, [ebp - 0x2c]
call fcn.00403110
push ecx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0xc
mov ebx, 3
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb4], ebx
call fcn.004388a2
mov esi, dword [ebp - 0xb0]
mov byte [ebp - 0xa9], 0
test al, al
jne 0x418ca9
mov byte [ebp - 0xa9], 1
test bl, 2
je 0x418cb9
lea ecx, [ebp - 0x2c]
and ebx, 0xfffffffd
call fcn.00403170
mov dword [ebp - 4], 0xa
test bl, 1
je 0x418ccd
lea ecx, [ebp - 0x48]
call fcn.00403170
cmp byte [ebp - 0xa9], 0
je 0x418d47
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x418d43
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov byte [ebp - 0x18], al
push 0x14
push str.Couldnt_create_zip
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.00404c90
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x30]
call fcn.00402a00
lea eax, [ebp - 0x30]
push eax
push eax
push 0x326
push str.Elements::CUpdater::ApplyPatchToZip
push 3
call fcn.00428590
add esp, 0x14
cmp dword [ebp - 0x1c], 8
jb 0x418d43
push dword [ebp - 0x30]
call fcn.004a295f
add esp, 4
xor bl, bl
jmp 0x418d56
test esi, esi
je 0x418d52
mov ecx, esi
call fcn.0044f5bf
xor esi, esi
mov bl, 1
mov byte [ebp - 4], 7
test esi, esi
je 0x418ab5
mov ecx, esi
call fcn.0044f5bf
jmp 0x418ab5