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

Disassembly:
push 0xffffffffffffffff
push 0x50f49c
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
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 [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0xe4], esi
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
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 0x440e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp]
push eax
push 0x51b2c4
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
jmp 0x441cd4
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 0x440e78
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, 0x546980
call fcn.004df340
add esp, 0xc
jmp 0x441cd4
push edi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
jne 0x440eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.map_file_view_failed:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 8
jmp 0x441cd4
cmp dword [ebp], 0x905a4d
mov esi, ebp
jne 0x440ec2
mov edx, dword [ebp + 0x3c]
mov esi, dword [edx + ebp + 8]
lea eax, [edx + ebp + 4]
add esi, ebp
cmp dword [esi], 0x2e647a7a
jne 0x441cc2
movzx eax, word [esi + 4]
add esi, 4
add esi, 2
cmp ax, 2
jae 0x440ef9
movzx eax, ax
push eax
push str.invalid_package_count:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 8
jmp 0x441cd4
mov ecx, esi
sub ecx, ebp
add ecx, 8
cmp edi, ecx
jae 0x440f1c
push edi
push 0x51b370
mov ecx, 0x546980
call fcn.004df340
add esp, 8
jmp 0x441cd4
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 0x440f56
push ebx
push edi
push 0x51b388
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
mov dword [esp + 0x1c], 1
jmp 0x441cd8
mov eax, dword [esp + 0xec]
add eax, 4
lea edi, [esp + 0x3c]
call fcn.00404f20
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0xec]
push 1
push edi
call fcn.00442ef0
push 3
lea ecx, [esp + 0x60]
push edi
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ecx
call fcn.004288a0
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 0x440fb0
push eax
call fcn.004ea5da
add esp, 4
push ebx
push esi
push 0
call fcn.00445420
add esp, 0xc
cmp dword [esp + 0x48], eax
je 0x440fd7
push edi
push str.CRC_verification_failed_for__S
mov ecx, 0x546980
call fcn.004df340
add esp, 8
jmp 0x440fe7
lea edx, [esp + 0x3c]
push edx
push ebx
push esi
call fcn.00441e70
test eax, eax
jne 0x441006
push 0x51b3b4
mov ecx, 0x546980
call fcn.004df340
add esp, 4
mov dword [esp + 0x1c], 1
jmp 0x441cd8
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x4c]
add esi, ebx
push ecx
mov ebx, str.config_setup.xml
call fcn.00417ae0
add esp, 8
mov edx, dword [esp + 0xec]
push edx
mov ecx, eax
mov byte [esp + 0xe8], 2
call fcn.00441ee0
test eax, eax
lea ecx, [esp + 0x48]
sete bl
mov edi, 1
mov byte [esp + 0xe4], 1
call fcn.00406cf0
test bl, bl
je 0x441070
push str.parse_setup.xml_failed
mov ecx, 0x546980
call fcn.004df340
add esp, 4
mov dword [esp + 0x1c], edi
jmp 0x441cd8
mov eax, dword [esp + 0x14]
mov ecx, esi
sub ecx, ebp
add ecx, 8
cmp eax, ecx
jae 0x44109b
push eax
push str.invalid_file_size:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 8
mov dword [esp + 0x1c], edi
jmp 0x441cd8
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 0x4410d1
push eax
push str.invalid_file_size:__d__sub_package_size:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
mov dword [esp + 0x1c], 1
jmp 0x441cd8
push esi
push 0
call fcn.00445420
add esp, 0xc
cmp ebx, eax
je 0x4410f9
mov eax, dword [esp + 0x3c]
push eax
push str.CRC_verification_failed_for__S
mov ecx, 0x546980
call fcn.004df340
add esp, 8
jmp 0x441109
lea ecx, [esp + 0x3c]
push ecx
push edi
push esi
call fcn.00441e70
test eax, eax
jne 0x441128
push str.extract_setup.xml_failed
mov ecx, 0x546980
call fcn.004df340
add esp, 4
mov dword [esp + 0x1c], 1
jmp 0x441cd8
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.00435480
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x51b46c
mov byte [esp + 0xf4], 3
call fcn.00417ae0
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0xe4], 5
call fcn.00406cf0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x441188
mov eax, esi
lea edi, [esp + 0x18]
call fcn.00404f20
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 0x441321
mov ebx, dword [esp + 0xec]
mov edi, dword [esp + 0x14]
lea esi, [ebx + 0x20]
call fcn.00443f40
mov ebp, eax
cmp dword [ebp + 4], 1
jne 0x4412fd
lea ecx, [esp + 0x20]
push ebp
push ecx
lea ebx, [esp + 0x20]
call fcn.00435480
add esp, 8
mov byte [esp + 0xe4], 6
mov edx, dword [ebp + 0x10]
cmp dword [edx - 0xc], 0
lea eax, [ebp + 0x10]
je 0x44122c
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00435480
add esp, 8
lea edi, [esp + 0x20]
mov byte [esp + 0xe4], 7
call fcn.00404f20
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 6
call fcn.00406cf0
lea esi, [esp + 0x20]
lea ecx, [esp + 0x30]
call fcn.004a4290
lea edx, [esp + 0x30]
mov byte [esp + 0xe4], 8
mov ecx, dword [ebp + 8]
push edx
call fcn.0041ca50
test eax, eax
jne 0x441451
mov edi, dword [esp + 0xec]
cmp dword [edi + 0x3c], eax
je 0x4412d8
push ebp
mov ecx, 0x51b49c
call fcn.0041ca50
test eax, eax
jne 0x4412d8
lea esi, [esp + 0x44]
call fcn.00404e90
push 0x104
mov ecx, 0x105
mov byte [esp + 0xe8], 9
call fcn.00407660
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00418a60
lea ecx, [esp + 0x28]
call fcn.004a4290
mov byte [esp + 0xe4], 0xa
mov ebp, dword [ebp + 0xc]
push eax
mov ecx, ebp
call fcn.0041ca50
test eax, eax
lea ecx, [esp + 0x28]
setne bl
call fcn.00406cf0
mov ecx, esi
call fcn.00406cf0
test bl, bl
jne 0x44147f
lea ecx, [esp + 0x30]
call fcn.00406cf0
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 5
call fcn.00406cf0
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 0x4411c2
mov ebp, dword [esp + 0xec]
lea esi, [ebp + 0x10]
lea eax, [esp + 0x24]
push esi
push eax
lea ebx, [ebp + 8]
call fcn.00435480
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x51b4b4
mov byte [esp + 0xf4], 0xb
call fcn.00417ae0
add esp, 0x10
lea edi, [esp + 0x2c]
mov byte [esp + 0xe4], 0xc
call fcn.00404f20
lea ecx, [esp + 0x28]
call fcn.00406cf0
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 5
call fcn.00406cf0
lea edx, [esp + 0x28]
push esi
push edx
lea ebx, [esp + 0x44]
call fcn.00435480
push eax
lea eax, [esp + 0x44]
push eax
mov ebx, 0x51b4b8
mov byte [esp + 0xf4], 0xd
call fcn.00417ae0
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0xf
call fcn.00406cf0
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov esi, edi
call fcn.00421550
neg eax
lea ecx, [esp + 0x18]
sbb eax, eax
push ecx
lea edx, [esp + 0x28]
inc eax
push edx
mov ebx, 0x51b4bc
mov dword [esp + 0x50], eax
call fcn.00417ae0
add esp, 8
lea esi, [esp + 0x38]
mov edi, eax
mov byte [esp + 0xe4], 0x10
call fcn.00443b50
test eax, eax
lea ecx, [esp + 0x24]
sete bl
mov byte [esp + 0xe4], 0xf
call fcn.00406cf0
test bl, bl
je 0x4414ef
push 0x51b4c0
mov ecx, 0x546980
call fcn.004df340
add esp, 4
mov dword [esp + 0x1c], 3
lea ecx, [esp + 0x38]
call fcn.00406cf0
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 1
call fcn.00406cf0
jmp 0x441cd8
mov ecx, dword [esp + 0x20]
push ecx
push str.base_version_file_checksum_not_match:__S
mov ecx, 0x546980
call fcn.004df340
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 2
call fcn.00406cf0
lea ecx, [esp + 0x20]
jmp 0x441436
lea ecx, [esp + 0x30]
call fcn.00406cf0
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 5
call fcn.00406cf0
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.004431f0
lea ecx, [esp + 0x18]
test eax, eax
je 0x4414ce
call fcn.00406cf0
lea ecx, [esp + 0x3c]
call fcn.00406cf0
lea ecx, [esp + 0x2c]
call fcn.00406cf0
mov eax, 9
jmp 0x441d6f
call fcn.00406cf0
lea ecx, [esp + 0x3c]
call fcn.00406cf0
lea ecx, [esp + 0x2c]
call fcn.00406cf0
mov eax, 0xa
jmp 0x441d6f
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x51b4d8
call fcn.00417ae0
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 0x4415ac
add ebp, 0x1c
lea eax, [esp + 0x24]
push ebp
push eax
lea ebx, [esp + 0x44]
call fcn.00435480
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x51b4ec
mov byte [esp + 0xf4], 0x12
call fcn.00417ae0
add esp, 0x10
lea edi, [esp + 0x34]
mov byte [esp + 0xe4], 0x13
call fcn.00404f20
lea ecx, [esp + 0x28]
call fcn.00406cf0
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x11
call fcn.00406cf0
mov edx, dword [esp + 0x34]
push edx
call esi
test eax, eax
jne 0x4415ac
push 0x51b504
mov ecx, 0x546980
call fcn.004df340
add esp, 4
mov ecx, edi
mov dword [esp + 0x1c], 0xc
call fcn.00406cf0
jmp 0x441432
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.00404eb0
add eax, 0x10
mov dword [esp + 0x20], eax
mov bl, 0x14
lea esi, [esp + 0x20]
mov byte [esp + 0xe4], bl
call fcn.004179e0
inc eax
lea ecx, [esp + 0x28]
mov edx, esi
call fcn.00417a70
mov edi, esi
mov byte [esp + 0xe4], 0x15
call fcn.00404f20
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], bl
call fcn.00406cf0
mov eax, esi
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x51b51c
call fcn.00417ae0
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.00406cf0
test bl, bl
je 0x4416d0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x51b530
call fcn.00417ae0
mov ecx, edi
push ecx
lea edx, [esp + 0x34]
push edx
mov ebx, 0x51b544
mov byte [esp + 0xf4], 0x16
call fcn.00417ae0
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.00406cf0
test bl, bl
je 0x4416bf
push str.cannot_copy_zlib1.dll
mov ecx, 0x546980
call fcn.004df340
add esp, 4
mov dword [esp + 0x1c], 0xd
lea ecx, [esp + 0x14]
call fcn.00406cf0
lea ecx, [esp + 0x20]
call fcn.00406cf0
lea ecx, [esp + 0x34]
call fcn.00406cf0
jmp 0x441432
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x14
call fcn.00406cf0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x51b570
call fcn.00417ae0
mov eax, dword [eax]
add esp, 8
push eax
call esi
test eax, eax
lea ecx, [esp + 0x28]
sete bl
call fcn.00406cf0
test bl, bl
je 0x44178d
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.Microsoft.VC90.CRT
call fcn.00417ae0
add esp, 8
lea esi, [esp + 0x20]
lea edi, [esp + 0x14]
mov byte [esp + 0xe4], 0x17
call fcn.00443b50
test eax, eax
jne 0x44177c
push str.copy_vccrt_dir_for_patch.exe_failed
mov ecx, 0x546980
call fcn.004df340
add esp, 4
mov ecx, edi
call fcn.00406cf0
lea ecx, [esp + 0x20]
call fcn.00406cf0
lea ecx, [esp + 0x34]
call fcn.00406cf0
lea ecx, [esp + 0x38]
call fcn.00406cf0
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 1
call fcn.00406cf0
jmp 0x441cf3
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x14
call fcn.00406cf0
call fcn.00442b00
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.00435480
push eax
lea ecx, [esp + 0x58]
push ecx
mov ebx, 0x51b5e4
mov byte [esp + 0xf4], 0x18
call fcn.00417ae0
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0x1a
call fcn.00406cf0
test ebp, ebp
jle 0x441882
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e8dab
add esp, 4
push 0x14
mov dword [esp + 0x34], eax
call fcn.004ea4e3
add esp, 4
test eax, eax
je 0x44181f
mov esi, eax
call fcn.00441d90
mov esi, eax
jmp 0x441821
xor esi, esi
mov eax, dword [esp + 0xec]
mov dword [esi], eax
lea edi, [esi + 4]
lea eax, [esp + 0x34]
call fcn.00404f20
lea edi, [esi + 8]
lea eax, [esp + 0x18]
call fcn.00404f20
lea edi, [esi + 0xc]
lea eax, [esp + 0x38]
call fcn.00404f20
lea edi, [esi + 0x10]
lea eax, [esp + 0x4c]
call fcn.00404f20
xor edi, edi
test ebp, ebp
jle 0x441882
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x442620
push 0
push 0
call ebx
mov ecx, dword [esp + 0x30]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebp
jl 0x441866
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.00442a50
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
test ebp, ebp
jle 0x4418ef
push 0xffffffffffffffff
push 1
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
cmp dword [esp + 0x44], edi
je 0x4418ef
cmp edi, ebp
jge 0x4418ef
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 0x4418e7
inc edi
jmp 0x4418c2
mov dword [esp + 0x44], 0
test esi, esi
je 0x441901
call fcn.00441df0
push esi
call fcn.004ea0ff
add esp, 4
push ebx
call fcn.004ea5cf
add esp, 4
cmp dword [esp + 0x44], 0
jne 0x441922
mov dword [esp + 0x1c], 7
lea ecx, [esp + 0x4c]
jmp 0x4416a3
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xec]
push 1
push edx
mov ecx, ebx
call fcn.00442ef0
push ebx
lea esi, [esp + 0x30]
lea edi, [esp + 0x3c]
call fcn.00443990
test eax, eax
jne 0x44197e
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, 0x546980
call fcn.004df340
add esp, 0x10
mov dword [esp + 0x1c], 0xb
lea ecx, [esp + 0x4c]
jmp 0x4416a3
cmp dword [esp + 0x48], 0
mov ebp, ebx
je 0x441a21
lea eax, [ebp + 0x14]
push eax
lea edx, [esp + 0x28]
push edx
lea ebx, [ebp + 8]
call fcn.00435480
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, 0x51b610
mov byte [esp + 0xf4], 0x1b
call fcn.00417ae0
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x1d
call fcn.00406cf0
mov edx, dword [esp + 0x14]
push 3
lea ecx, [esp + 0x60]
push edx
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ecx
call fcn.004288a0
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 0x441a00
push eax
call fcn.004ea5da
add esp, 4
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x1c]
mov ecx, ebp
call fcn.00442cc0
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x1a
call fcn.00406cf0
lea esi, [ebp + 8]
lea eax, [esp + 0x14]
push esi
push eax
mov ebx, 0x51b614
call fcn.00417ae0
mov edi, eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, 0x51b62c
mov byte [esp + 0xf4], 0x1e
call fcn.00417ae0
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.00406cf0
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x1a
call fcn.00406cf0
test bl, bl
je 0x441bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51b644
push 0x51b65c
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
lea eax, [esp + 0x24]
push esi
push eax
mov ebx, 0x51b680
call fcn.00417ae0
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.00406cf0
test bl, bl
jne 0x441b62
lea ecx, [esp + 0x30]
push esi
push ecx
mov ebx, 0x51b698
call fcn.00417ae0
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.00417ae0
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.00406cf0
lea ecx, [esp + 0x30]
mov byte [esp + 0xe4], 0x1a
call fcn.00406cf0
test bl, bl
je 0x441bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shuame_new.exe
push 0x51b6f0
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
mov ebx, dword [esp + 0x50]
xor edi, edi
mov byte [esp + 0x43], 0
test bl, 2
je 0x441b7e
lea ecx, [esp + 0x14]
and ebx, 0xfffffffd
call fcn.00406cf0
mov dword [esp + 0xe4], 0x1a
test bl, 1
je 0x441b97
lea ecx, [esp + 0x30]
call fcn.00406cf0
cmp byte [esp + 0x43], 0
je 0x441c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51b744
push 0x51b75c
mov ecx, 0x546980
call fcn.004df340
add esp, 0xc
jmp 0x441c2e
lea edx, [esp + 0x30]
push esi
push edx
mov ebx, 0x51b714
call fcn.00417ae0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xf0], 0x20
push ecx
mov ebx, 0x51b72c
mov dword [esp + 0x60], 1
call fcn.00417ae0
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 0x441b68
mov byte [esp + 0x43], 1
jmp 0x441b6d
test edi, edi
jne 0x441cb9
cmp dword [esp + 0x48], 0
je 0x441c9a
lea eax, [ebp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, esi
call fcn.00435480
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, 0x51b780
mov byte [esp + 0xf4], 0x21
call fcn.00417ae0
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x23
call fcn.00406cf0
push esi
lea edi, [esp + 0x18]
mov ecx, ebp
call fcn.00442cc0
mov edx, dword [esp + 0x14]
push 1
push edx
mov ecx, ebp
call fcn.00442ef0
mov ecx, edi
mov byte [esp + 0xe4], 0x1a
call fcn.00406cf0
mov eax, dword [esp + 0x2c]
push 1
push eax
mov ecx, ebp
call fcn.00442ef0
mov dword [esp + 0x1c], 8
lea ecx, [esp + 0x4c]
jmp 0x4416a3
lea ecx, [esp + 0x4c]
jmp 0x441746
push str.patch_package_magic_number_not_match
mov ecx, 0x546980
call fcn.004df340
add esp, 4
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
je 0x441cf3
mov edx, ecx
mov ecx, dword [esp + 0xec]
push 1
push edx
call fcn.00442ef0
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x441d03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x3c]
cmp dword [esi - 0xc], 0
je 0x441d1c
mov ecx, dword [esp + 0xec]
push 1
push esi
call fcn.00442ef0
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 0x441d40
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 0x441d6b
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