Function at 0x40c7ab
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a286e
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
call fcn.00402e69
cmp dword [esi + 0x14], 8
jb 0x40c80d
mov esi, dword [esi]
mov ecx, dword [eax]
push esi
push str._Patch_patch__s
push 0x6007f4
push 0x167
push 2
push eax
call dword [ecx + 8]
add esp, 0x18
xor esi, esi
push esi
lea edi, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.00455d30
push 5
pop ebx
mov dword [esp + 0xe8], esi
push ebx
lea edi, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.00455d30
mov esi, str.reserved_file
push eax
mov edx, esi
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 1
call fcn.00455200
mov ecx, eax
call fcn.00455700
mov ecx, edi
mov byte [esp + 0xe8], 0
call fcn.00455b60
push ebx
lea edi, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.00455d30
push eax
mov edx, str.tmp_file
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 2
call fcn.00455200
mov ecx, eax
call fcn.00455700
mov ecx, edi
mov byte [esp + 0xe8], 0
call fcn.00455b60
push ebx
lea edi, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.00455d30
push eax
mov edx, str.real_file
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 3
call fcn.00455200
mov ecx, eax
call fcn.00455700
mov ecx, edi
mov byte [esp + 0xe8], 0
call fcn.00455b60
mov ebx, str.update.ini
lea edi, [esp + 0x34]
call fcn.00455f20
mov eax, edi
push eax
mov edx, esi
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 4
call fcn.00455200
mov ecx, eax
call fcn.00455760
xor ebx, ebx
mov ecx, edi
mov byte [esp + 0xe8], bl
call fcn.00455b60
push 7
pop eax
mov dword [esp + 0x70], eax
xor ecx, ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0xa8], eax
xor eax, eax
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], ax
mov dword [esp + 0x54], ebx
mov byte [esp + 0xc0], bl
push 0x5fe734
lea eax, [esp + 0x38]
mov byte [esp + 0xec], 5
call fcn.004018af
push dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push dword [esp + 0x24]
lea ecx, [eax + 0x20]
push ecx
push eax
lea ebx, [esp + 0x6c]
mov byte [esp + 0x100], 6
call fcn.0045f440
push 1
xor edi, edi
lea esi, [esp + 0x38]
mov byte [esp + 0xec], 5
call fcn.00401ad5
mov edi, ebx
call fcn.0045f330
mov eax, dword [esp + 0xc4]
or eax, dword [esp + 0xc8]
je 0x40ca26
call fcn.00402e69
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x40c9f9
mov ecx, dword [esi]
jmp 0x40c9fb
mov ecx, esi
push dword [esp + 0xc4]
mov edx, dword [eax]
push dword [esp + 0xcc]
push ecx
push str.s7ZPatchProc_StopCallback__s__d__d
push 0x6007f4
push 0x173
push 2
push eax
call dword [edx + 8]
add esp, 0x20
jmp 0x40ca2a
mov esi, dword [esp + 0x14]
push dword [esp + 0xc4]
push dword [esp + 0xcc]
push esi
call dword [esi + 0xd0]
add esp, 0xc
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xec], 0
call fcn.0045d800
or dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00455b60
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret 4