Function at 0x441540
Capabilities:
Check if file exists
Copy file
Create thread
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x50fcfc
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xec]
xor esi, esi
mov dword [esp + 0x50], esi
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0xe4], esi
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x546fac
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
push esi
push 0x80
push 3
push esi
mov ebx, 1
push ebx
mov byte [esp + 0xf8], bl
mov eax, dword [ebp]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x54], esi
cmp esi, 0xffffffff
jne 0x441603
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp]
push eax
push 0x51c2c4
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
jmp 0x4424a4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov edi, eax
push edi
push 0
push 2
push 0
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test esi, esi
jne 0x441648
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp]
push eax
push ecx
push str.create_file_mapping_on__S_failed:__d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
jmp 0x4424a4
push edi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
jne 0x44167a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.map_file_view_failed:__d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
jmp 0x4424a4
cmp dword [ebp], 0x905a4d
mov esi, ebp
jne 0x441692
mov edx, dword [ebp + 0x3c]
mov esi, dword [edx + ebp + 8]
lea eax, [edx + ebp + 4]
add esi, ebp
cmp dword [esi], 0x2e647a7a
jne 0x442492
movzx eax, word [esi + 4]
add esi, 4
add esi, 2
cmp ax, 2
jae 0x4416c9
movzx eax, ax
push eax
push str.invalid_package_count:__d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
jmp 0x4424a4
mov ecx, esi
sub ecx, ebp
add ecx, 8
cmp edi, ecx
jae 0x4416ec
push edi
push 0x51c370
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
jmp 0x4424a4
mov ebx, dword [esi]
mov edx, dword [esi + 4]
add esi, 4
mov eax, ebx
add esi, 4
sub eax, ebp
add eax, esi
mov dword [esp + 0x48], edx
cmp edi, eax
jae 0x441726
push ebx
push edi
push 0x51c388
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
mov dword [esp + 0x1c], 1
jmp 0x4424a8
mov eax, dword [esp + 0xec]
add eax, 4
lea edi, [esp + 0x3c]
call fcn.00405050
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0xec]
push 1
push edi
call fcn.004436c0
push 3
lea ecx, [esp + 0x60]
push edi
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ecx
call fcn.00428d80
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x441780
push eax
call fcn.004ead0a
add esp, 4
push ebx
push esi
push 0
call fcn.00445b30
add esp, 0xc
cmp dword [esp + 0x48], eax
je 0x4417a7
push edi
push str.CRC_verification_failed_for__S
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
jmp 0x4417b7
lea edx, [esp + 0x3c]
push edx
push ebx
push esi
call fcn.00442640
test eax, eax
jne 0x4417d6
push 0x51c3b4
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
mov dword [esp + 0x1c], 1
jmp 0x4424a8
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x4c]
add esi, ebx
push ecx
mov ebx, str.config_setup.xml
call fcn.00418040
add esp, 8
mov edx, dword [esp + 0xec]
push edx
mov ecx, eax
mov byte [esp + 0xe8], 2
call fcn.004426b0
test eax, eax
lea ecx, [esp + 0x48]
sete bl
mov edi, 1
mov byte [esp + 0xe4], 1
call fcn.00406e40
test bl, bl
je 0x441840
push str.parse_setup.xml_failed
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
mov dword [esp + 0x1c], edi
jmp 0x4424a8
mov eax, dword [esp + 0x14]
mov ecx, esi
sub ecx, ebp
add ecx, 8
cmp eax, ecx
jae 0x44186b
push eax
push str.invalid_file_size:__d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
mov dword [esp + 0x1c], edi
jmp 0x4424a8
mov edi, dword [esi]
mov ebx, dword [esi + 4]
add esi, 4
mov edx, edi
add esi, 4
sub edx, ebp
add edx, esi
push edi
cmp eax, edx
jae 0x4418a1
push eax
push str.invalid_file_size:__d__sub_package_size:__d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
mov dword [esp + 0x1c], 1
jmp 0x4424a8
push esi
push 0
call fcn.00445b30
add esp, 0xc
cmp ebx, eax
je 0x4418c9
mov eax, dword [esp + 0x3c]
push eax
push str.CRC_verification_failed_for__S
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
jmp 0x4418d9
lea ecx, [esp + 0x3c]
push ecx
push edi
push esi
call fcn.00442640
test eax, eax
jne 0x4418f8
push str.extract_setup.xml_failed
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
mov dword [esp + 0x1c], 1
jmp 0x4424a8
mov ecx, dword [esp + 0xec]
lea eax, [ecx + 0x14]
lea esi, [ecx + 8]
push eax
lea edx, [esp + 0x4c]
push edx
mov ebx, esi
call fcn.00435bd0
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x51c46c
mov byte [esp + 0xf4], 3
call fcn.00418040
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0xe4], 5
call fcn.00406e40
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x441958
mov eax, esi
lea edi, [esp + 0x18]
call fcn.00405050
mov eax, dword [esp + 0xec]
mov ecx, dword [eax + 0x30]
sub ecx, dword [eax + 0x2c]
add eax, 0x20
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], 0
je 0x441af1
mov ebx, dword [esp + 0xec]
mov edi, dword [esp + 0x14]
lea esi, [ebx + 0x20]
call fcn.00444710
mov ebp, eax
cmp dword [ebp + 4], 1
jne 0x441acd
lea ecx, [esp + 0x20]
push ebp
push ecx
lea ebx, [esp + 0x20]
call fcn.00435bd0
add esp, 8
mov byte [esp + 0xe4], 6
mov edx, dword [ebp + 0x10]
cmp dword [edx - 0xc], 0
lea eax, [ebp + 0x10]
je 0x4419fc
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00435bd0
add esp, 8
lea edi, [esp + 0x20]
mov byte [esp + 0xe4], 7
call fcn.00405050
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 6
call fcn.00406e40
lea esi, [esp + 0x20]
lea ecx, [esp + 0x30]
call fcn.004a4900
lea edx, [esp + 0x30]
mov byte [esp + 0xe4], 8
mov ecx, dword [ebp + 8]
push edx
call fcn.0041cf00
test eax, eax
jne 0x441c21
mov edi, dword [esp + 0xec]
cmp dword [edi + 0x3c], eax
je 0x441aa8
push ebp
mov ecx, 0x51c49c
call fcn.0041cf00
test eax, eax
jne 0x441aa8
lea esi, [esp + 0x44]
call fcn.00404fc0
push 0x104
mov ecx, 0x105
mov byte [esp + 0xe8], 9
call fcn.004076c0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00418f40
lea ecx, [esp + 0x28]
call fcn.004a4900
mov byte [esp + 0xe4], 0xa
mov ebp, dword [ebp + 0xc]
push eax
mov ecx, ebp
call fcn.0041cf00
test eax, eax
lea ecx, [esp + 0x28]
setne bl
call fcn.00406e40
mov ecx, esi
call fcn.00406e40
test bl, bl
jne 0x441c4f
lea ecx, [esp + 0x30]
call fcn.00406e40
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 5
call fcn.00406e40
mov ebx, dword [esp + 0xec]
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x30]
sub ecx, dword [ebx + 0x2c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [esp + 0x14], edi
cmp edi, eax
jb 0x441992
mov ebp, dword [esp + 0xec]
lea esi, [ebp + 0x10]
lea eax, [esp + 0x24]
push esi
push eax
lea ebx, [ebp + 8]
call fcn.00435bd0
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x51c4b4
mov byte [esp + 0xf4], 0xb
call fcn.00418040
add esp, 0x10
lea edi, [esp + 0x2c]
mov byte [esp + 0xe4], 0xc
call fcn.00405050
lea ecx, [esp + 0x28]
call fcn.00406e40
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 5
call fcn.00406e40
lea edx, [esp + 0x28]
push esi
push edx
lea ebx, [esp + 0x44]
call fcn.00435bd0
push eax
lea eax, [esp + 0x44]
push eax
mov ebx, 0x51c4b8
mov byte [esp + 0xf4], 0xd
call fcn.00418040
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0xf
call fcn.00406e40
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov esi, edi
call fcn.00421ba0
neg eax
lea ecx, [esp + 0x18]
sbb eax, eax
push ecx
lea edx, [esp + 0x28]
inc eax
push edx
mov ebx, 0x51c4bc
mov dword [esp + 0x50], eax
call fcn.00418040
add esp, 8
lea esi, [esp + 0x38]
mov edi, eax
mov byte [esp + 0xe4], 0x10
call fcn.00444320
test eax, eax
lea ecx, [esp + 0x24]
sete bl
mov byte [esp + 0xe4], 0xf
call fcn.00406e40
test bl, bl
je 0x441cbf
push 0x51c4c0
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
mov dword [esp + 0x1c], 3
lea ecx, [esp + 0x38]
call fcn.00406e40
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 1
call fcn.00406e40
jmp 0x4424a8
mov ecx, dword [esp + 0x20]
push ecx
push str.base_version_file_checksum_not_match:__S
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 2
call fcn.00406e40
lea ecx, [esp + 0x20]
jmp 0x441c06
lea ecx, [esp + 0x30]
call fcn.00406e40
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 5
call fcn.00406e40
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.004439c0
lea ecx, [esp + 0x18]
test eax, eax
je 0x441c9e
call fcn.00406e40
lea ecx, [esp + 0x3c]
call fcn.00406e40
lea ecx, [esp + 0x2c]
call fcn.00406e40
mov eax, 9
jmp 0x44253f
call fcn.00406e40
lea ecx, [esp + 0x3c]
call fcn.00406e40
lea ecx, [esp + 0x2c]
call fcn.00406e40
mov eax, 0xa
jmp 0x44253f
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x51c4d8
call fcn.00418040
add esp, 8
mov byte [esp + 0xe4], 0x11
mov edx, dword [esp + 0x34]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call esi
test eax, eax
jne 0x441d7c
add ebp, 0x1c
lea eax, [esp + 0x24]
push ebp
push eax
lea ebx, [esp + 0x44]
call fcn.00435bd0
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x51c4ec
mov byte [esp + 0xf4], 0x12
call fcn.00418040
add esp, 0x10
lea edi, [esp + 0x34]
mov byte [esp + 0xe4], 0x13
call fcn.00405050
lea ecx, [esp + 0x28]
call fcn.00406e40
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x11
call fcn.00406e40
mov edx, dword [esp + 0x34]
push edx
call esi
test eax, eax
jne 0x441d7c
push 0x51c504
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
mov ecx, edi
mov dword [esp + 0x1c], 0xc
call fcn.00406e40
jmp 0x441c02
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.00404fe0
add eax, 0x10
mov dword [esp + 0x20], eax
mov bl, 0x14
lea esi, [esp + 0x20]
mov byte [esp + 0xe4], bl
call fcn.00417f40
inc eax
lea ecx, [esp + 0x28]
mov edx, esi
call fcn.00417fd0
mov edi, esi
mov byte [esp + 0xe4], 0x15
call fcn.00405050
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], bl
call fcn.00406e40
mov eax, esi
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x51c51c
call fcn.00418040
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
push eax
call esi
test eax, eax
lea ecx, [esp + 0x28]
sete bl
call fcn.00406e40
test bl, bl
je 0x441ea0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x51c530
call fcn.00418040
mov ecx, edi
push ecx
lea edx, [esp + 0x34]
push edx
mov ebx, 0x51c544
mov byte [esp + 0xf4], 0x16
call fcn.00418040
mov eax, dword [eax]
add esp, 0x10
push 0
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [esp + 0x28]
sete bl
call fcn.00406e40
test bl, bl
je 0x441e8f
push str.cannot_copy_zlib1.dll
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
mov dword [esp + 0x1c], 0xd
lea ecx, [esp + 0x14]
call fcn.00406e40
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x34]
call fcn.00406e40
jmp 0x441c02
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x14
call fcn.00406e40
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x51c570
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call esi
test eax, eax
lea ecx, [esp + 0x28]
sete bl
call fcn.00406e40
test bl, bl
je 0x441f5d
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.Microsoft.VC90.CRT
call fcn.00418040
add esp, 8
lea esi, [esp + 0x20]
lea edi, [esp + 0x14]
mov byte [esp + 0xe4], 0x17
call fcn.00444320
test eax, eax
jne 0x441f4c
push str.copy_vccrt_dir_for_patch.exe_failed
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
mov ecx, edi
call fcn.00406e40
lea ecx, [esp + 0x20]
call fcn.00406e40
lea ecx, [esp + 0x34]
call fcn.00406e40
lea ecx, [esp + 0x38]
call fcn.00406e40
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 1
call fcn.00406e40
jmp 0x4424c3
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x14
call fcn.00406e40
call fcn.004432d0
mov edx, dword [esp + 0xec]
add edx, 0x1c
mov ebp, eax
push edx
lea eax, [esp + 0x2c]
xor esi, esi
push eax
lea ebx, [esp + 0x44]
mov dword [esp + 0x38], esi
call fcn.00435bd0
push eax
lea ecx, [esp + 0x58]
push ecx
mov ebx, 0x51c5e4
mov byte [esp + 0xf4], 0x18
call fcn.00418040
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0x1a
call fcn.00406e40
test ebp, ebp
jle 0x442052
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e94db
add esp, 4
push 0x14
mov dword [esp + 0x34], eax
call fcn.004eac13
add esp, 4
test eax, eax
je 0x441fef
mov esi, eax
call fcn.00442560
mov esi, eax
jmp 0x441ff1
xor esi, esi
mov eax, dword [esp + 0xec]
mov dword [esi], eax
lea edi, [esi + 4]
lea eax, [esp + 0x34]
call fcn.00405050
lea edi, [esi + 8]
lea eax, [esp + 0x18]
call fcn.00405050
lea edi, [esi + 0xc]
lea eax, [esp + 0x38]
call fcn.00405050
lea edi, [esi + 0x10]
lea eax, [esp + 0x4c]
call fcn.00405050
xor edi, edi
test ebp, ebp
jle 0x442052
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x442df0
push 0
push 0
call ebx
mov ecx, dword [esp + 0x30]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebp
jl 0x442036
mov edi, dword [esp + 0xec]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00443220
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
test ebp, ebp
jle 0x4420bf
push 0xffffffffffffffff
push 1
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
cmp dword [esp + 0x44], edi
je 0x4420bf
cmp edi, ebp
jge 0x4420bf
mov ecx, dword [ebx + edi*4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x14], 0
jne 0x4420b7
inc edi
jmp 0x442092
mov dword [esp + 0x44], 0
test esi, esi
je 0x4420d1
call fcn.004425c0
push esi
call fcn.004ea82f
add esp, 4
push ebx
call fcn.004eacff
add esp, 4
cmp dword [esp + 0x44], 0
jne 0x4420f2
mov dword [esp + 0x1c], 7
lea ecx, [esp + 0x4c]
jmp 0x441e73
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xec]
push 1
push edx
mov ecx, ebx
call fcn.004436c0
push ebx
lea esi, [esp + 0x30]
lea edi, [esp + 0x3c]
call fcn.00444160
test eax, eax
jne 0x44214e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x38]
push eax
lea eax, [ebx + 8]
mov eax, dword [eax]
push eax
push ecx
push str.move_folder_from__S_to__S_failed:__u
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0x10
mov dword [esp + 0x1c], 0xb
lea ecx, [esp + 0x4c]
jmp 0x441e73
cmp dword [esp + 0x48], 0
mov ebp, ebx
je 0x4421f1
lea eax, [ebp + 0x14]
push eax
lea edx, [esp + 0x28]
push edx
lea ebx, [ebp + 8]
call fcn.00435bd0
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, 0x51c610
mov byte [esp + 0xf4], 0x1b
call fcn.00418040
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x1d
call fcn.00406e40
mov edx, dword [esp + 0x14]
push 3
lea ecx, [esp + 0x60]
push edx
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ecx
call fcn.00428d80
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x4421d0
push eax
call fcn.004ead0a
add esp, 4
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x1c]
mov ecx, ebp
call fcn.00443490
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x1a
call fcn.00406e40
lea esi, [ebp + 8]
lea eax, [esp + 0x14]
push esi
push eax
mov ebx, 0x51c614
call fcn.00418040
mov edi, eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, 0x51c62c
mov byte [esp + 0xf4], 0x1e
call fcn.00418040
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x10
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call edi
test eax, eax
lea ecx, [esp + 0x24]
sete bl
call fcn.00406e40
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x1a
call fcn.00406e40
test bl, bl
je 0x442392
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51c644
push 0x51c65c
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
lea eax, [esp + 0x24]
push esi
push eax
mov ebx, 0x51c680
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [esp + 0x24]
sete bl
call fcn.00406e40
test bl, bl
jne 0x442332
lea ecx, [esp + 0x30]
push esi
push ecx
mov ebx, 0x51c698
call fcn.00418040
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, str.shuame.exe
mov byte [esp + 0xf4], 0x1f
call fcn.00418040
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 0x10
push 0
push ecx
push eax
call edi
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.00406e40
lea ecx, [esp + 0x30]
mov byte [esp + 0xe4], 0x1a
call fcn.00406e40
test bl, bl
je 0x442392
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shuame_new.exe
push 0x51c6f0
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
mov ebx, dword [esp + 0x50]
xor edi, edi
mov byte [esp + 0x43], 0
test bl, 2
je 0x44234e
lea ecx, [esp + 0x14]
and ebx, 0xfffffffd
call fcn.00406e40
mov dword [esp + 0xe4], 0x1a
test bl, 1
je 0x442367
lea ecx, [esp + 0x30]
call fcn.00406e40
cmp byte [esp + 0x43], 0
je 0x4423f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51c744
push 0x51c75c
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
jmp 0x4423fe
lea edx, [esp + 0x30]
push esi
push edx
mov ebx, 0x51c714
call fcn.00418040
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xf0], 0x20
push ecx
mov ebx, 0x51c72c
mov dword [esp + 0x60], 1
call fcn.00418040
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
mov eax, dword [eax]
add esp, 0x10
push 0
push ecx
push eax
mov ebx, 3
call edi
mov edi, dword [esp + 0x44]
test eax, eax
jne 0x442338
mov byte [esp + 0x43], 1
jmp 0x44233d
test edi, edi
jne 0x442489
cmp dword [esp + 0x48], 0
je 0x44246a
lea eax, [ebp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, esi
call fcn.00435bd0
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, 0x51c780
mov byte [esp + 0xf4], 0x21
call fcn.00418040
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x23
call fcn.00406e40
push esi
lea edi, [esp + 0x18]
mov ecx, ebp
call fcn.00443490
mov edx, dword [esp + 0x14]
push 1
push edx
mov ecx, ebp
call fcn.004436c0
mov ecx, edi
mov byte [esp + 0xe4], 0x1a
call fcn.00406e40
mov eax, dword [esp + 0x2c]
push 1
push eax
mov ecx, ebp
call fcn.004436c0
mov dword [esp + 0x1c], 8
lea ecx, [esp + 0x4c]
jmp 0x441e73
lea ecx, [esp + 0x4c]
jmp 0x441f16
push str.patch_package_magic_number_not_match
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
je 0x4424c3
mov edx, ecx
mov ecx, dword [esp + 0xec]
push 1
push edx
call fcn.004436c0
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x4424d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x3c]
cmp dword [esi - 0xc], 0
je 0x4424ec
mov ecx, dword [esp + 0xec]
push 1
push esi
call fcn.004436c0
lea eax, [esi - 0x10]
mov byte [esp + 0xe4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xe4], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44253b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret 4