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

Disassembly:
push 0xffffffffffffffff
push 0x49eeec
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
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 [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0xe4], esi
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
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 0x4321a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp]
push eax
push 0x4a6178
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
jmp 0x433044
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 0x4321e8
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, 0x4c5908
call fcn.00472890
add esp, 0xc
jmp 0x433044
push edi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
jne 0x43221a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.map_file_view_failed:__d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
jmp 0x433044
cmp dword [ebp], 0x905a4d
mov esi, ebp
jne 0x432232
mov edx, dword [ebp + 0x3c]
mov esi, dword [edx + ebp + 8]
lea eax, [edx + ebp + 4]
add esi, ebp
cmp dword [esi], 0x2e647a7a
jne 0x433032
movzx eax, word [esi + 4]
add esi, 4
add esi, 2
cmp ax, 2
jae 0x432269
movzx eax, ax
push eax
push str.invalid_package_count:__d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
jmp 0x433044
mov ecx, esi
sub ecx, ebp
add ecx, 8
cmp edi, ecx
jae 0x43228c
push edi
push 0x4a6224
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
jmp 0x433044
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 0x4322c6
push ebx
push edi
push 0x4a623c
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
mov dword [esp + 0x1c], 1
jmp 0x433048
mov eax, dword [esp + 0xec]
add eax, 4
lea edi, [esp + 0x3c]
call fcn.00404fc0
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0xec]
push 1
push edi
call fcn.00434260
push 3
lea ecx, [esp + 0x60]
push edi
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ecx
call fcn.004355c0
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 0x432320
push eax
call fcn.0047d363
add esp, 4
push ebx
push esi
push 0
call fcn.00436260
add esp, 0xc
cmp dword [esp + 0x48], eax
je 0x432347
push edi
push str.CRC_verification_failed_for__S
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
jmp 0x432357
lea edx, [esp + 0x3c]
push edx
push ebx
push esi
call fcn.004331e0
test eax, eax
jne 0x432376
push 0x4a6268
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov dword [esp + 0x1c], 1
jmp 0x433048
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x4c]
add esi, ebx
push ecx
mov ebx, str.config_setup.xml
call fcn.00412200
add esp, 8
mov edx, dword [esp + 0xec]
push edx
mov ecx, eax
mov byte [esp + 0xe8], 2
call fcn.00433250
test eax, eax
lea ecx, [esp + 0x48]
sete bl
mov edi, 1
mov byte [esp + 0xe4], 1
call fcn.00406e10
test bl, bl
je 0x4323e0
push str.parse_setup.xml_failed
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov dword [esp + 0x1c], edi
jmp 0x433048
mov eax, dword [esp + 0x14]
mov ecx, esi
sub ecx, ebp
add ecx, 8
cmp eax, ecx
jae 0x43240b
push eax
push str.invalid_file_size:__d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
mov dword [esp + 0x1c], edi
jmp 0x433048
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 0x432441
push eax
push str.invalid_file_size:__d__sub_package_size:__d
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
mov dword [esp + 0x1c], 1
jmp 0x433048
push esi
push 0
call fcn.00436260
add esp, 0xc
cmp ebx, eax
je 0x432469
mov eax, dword [esp + 0x3c]
push eax
push str.CRC_verification_failed_for__S
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
jmp 0x432479
lea ecx, [esp + 0x3c]
push ecx
push edi
push esi
call fcn.004331e0
test eax, eax
jne 0x432498
push str.extract_setup.xml_failed
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov dword [esp + 0x1c], 1
jmp 0x433048
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.004264f0
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x4a6320
mov byte [esp + 0xf4], 3
call fcn.00412200
add esp, 0x10
lea ecx, [esp + 0x48]
mov byte [esp + 0xe4], 5
call fcn.00406e10
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4324f8
mov eax, esi
lea edi, [esp + 0x18]
call fcn.00404fc0
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 0x432691
mov ebx, dword [esp + 0xec]
mov edi, dword [esp + 0x14]
lea esi, [ebx + 0x20]
call fcn.004352b0
mov ebp, eax
cmp dword [ebp + 4], 1
jne 0x43266d
lea ecx, [esp + 0x20]
push ebp
push ecx
lea ebx, [esp + 0x20]
call fcn.004264f0
add esp, 8
mov byte [esp + 0xe4], 6
mov edx, dword [ebp + 0x10]
cmp dword [edx - 0xc], 0
lea eax, [ebp + 0x10]
je 0x43259c
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004264f0
add esp, 8
lea edi, [esp + 0x20]
mov byte [esp + 0xe4], 7
call fcn.00404fc0
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 6
call fcn.00406e10
lea esi, [esp + 0x20]
lea ecx, [esp + 0x30]
call fcn.00436d50
lea edx, [esp + 0x30]
mov byte [esp + 0xe4], 8
mov ecx, dword [ebp + 8]
push edx
call fcn.0041f8e0
test eax, eax
jne 0x4327c1
mov edi, dword [esp + 0xec]
cmp dword [edi + 0x3c], eax
je 0x432648
push ebp
mov ecx, 0x4a6350
call fcn.0041f8e0
test eax, eax
jne 0x432648
lea esi, [esp + 0x44]
call fcn.00404f30
push 0x104
mov ecx, 0x105
mov byte [esp + 0xe8], 9
call fcn.00407680
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00412810
lea ecx, [esp + 0x28]
call fcn.00436d50
mov byte [esp + 0xe4], 0xa
mov ebp, dword [ebp + 0xc]
push eax
mov ecx, ebp
call fcn.0041f8e0
test eax, eax
lea ecx, [esp + 0x28]
setne bl
call fcn.00406e10
mov ecx, esi
call fcn.00406e10
test bl, bl
jne 0x4327ef
lea ecx, [esp + 0x30]
call fcn.00406e10
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 5
call fcn.00406e10
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 0x432532
mov ebp, dword [esp + 0xec]
lea esi, [ebp + 0x10]
lea eax, [esp + 0x24]
push esi
push eax
lea ebx, [ebp + 8]
call fcn.004264f0
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x4a6368
mov byte [esp + 0xf4], 0xb
call fcn.00412200
add esp, 0x10
lea edi, [esp + 0x2c]
mov byte [esp + 0xe4], 0xc
call fcn.00404fc0
lea ecx, [esp + 0x28]
call fcn.00406e10
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 5
call fcn.00406e10
lea edx, [esp + 0x28]
push esi
push edx
lea ebx, [esp + 0x44]
call fcn.004264f0
push eax
lea eax, [esp + 0x44]
push eax
mov ebx, 0x4a636c
mov byte [esp + 0xf4], 0xd
call fcn.00412200
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0xf
call fcn.00406e10
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov esi, edi
call fcn.0041a110
neg eax
lea ecx, [esp + 0x18]
sbb eax, eax
push ecx
lea edx, [esp + 0x28]
inc eax
push edx
mov ebx, 0x4a6370
mov dword [esp + 0x50], eax
call fcn.00412200
add esp, 8
lea esi, [esp + 0x38]
mov edi, eax
mov byte [esp + 0xe4], 0x10
call fcn.00434ec0
test eax, eax
lea ecx, [esp + 0x24]
sete bl
mov byte [esp + 0xe4], 0xf
call fcn.00406e10
test bl, bl
je 0x43285f
push 0x4a6374
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov dword [esp + 0x1c], 3
lea ecx, [esp + 0x38]
call fcn.00406e10
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 1
call fcn.00406e10
jmp 0x433048
mov ecx, dword [esp + 0x20]
push ecx
push str.base_version_file_checksum_not_match:__S
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 2
call fcn.00406e10
lea ecx, [esp + 0x20]
jmp 0x4327a6
lea ecx, [esp + 0x30]
call fcn.00406e10
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 5
call fcn.00406e10
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.00434560
lea ecx, [esp + 0x18]
test eax, eax
je 0x43283e
call fcn.00406e10
lea ecx, [esp + 0x3c]
call fcn.00406e10
lea ecx, [esp + 0x2c]
call fcn.00406e10
mov eax, 9
jmp 0x4330df
call fcn.00406e10
lea ecx, [esp + 0x3c]
call fcn.00406e10
lea ecx, [esp + 0x2c]
call fcn.00406e10
mov eax, 0xa
jmp 0x4330df
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, 0x4a638c
call fcn.00412200
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 0x43291c
add ebp, 0x1c
lea eax, [esp + 0x24]
push ebp
push eax
lea ebx, [esp + 0x44]
call fcn.004264f0
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x4a63a0
mov byte [esp + 0xf4], 0x12
call fcn.00412200
add esp, 0x10
lea edi, [esp + 0x34]
mov byte [esp + 0xe4], 0x13
call fcn.00404fc0
lea ecx, [esp + 0x28]
call fcn.00406e10
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x11
call fcn.00406e10
mov edx, dword [esp + 0x34]
push edx
call esi
test eax, eax
jne 0x43291c
push 0x4a63b8
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov ecx, edi
mov dword [esp + 0x1c], 0xc
call fcn.00406e10
jmp 0x4327a2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.00404f50
add eax, 0x10
mov dword [esp + 0x20], eax
mov bl, 0x14
lea esi, [esp + 0x20]
mov byte [esp + 0xe4], bl
call fcn.00412100
inc eax
lea ecx, [esp + 0x28]
mov edx, esi
call fcn.00412190
mov edi, esi
mov byte [esp + 0xe4], 0x15
call fcn.00404fc0
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], bl
call fcn.00406e10
mov eax, esi
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x4a63d0
call fcn.00412200
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.00406e10
test bl, bl
je 0x432a40
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4a63e4
call fcn.00412200
mov ecx, edi
push ecx
lea edx, [esp + 0x34]
push edx
mov ebx, 0x4a63f8
mov byte [esp + 0xf4], 0x16
call fcn.00412200
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.00406e10
test bl, bl
je 0x432a2f
push str.cannot_copy_zlib1.dll
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov dword [esp + 0x1c], 0xd
lea ecx, [esp + 0x14]
call fcn.00406e10
lea ecx, [esp + 0x20]
call fcn.00406e10
lea ecx, [esp + 0x34]
call fcn.00406e10
jmp 0x4327a2
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x14
call fcn.00406e10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x4a6424
call fcn.00412200
mov eax, dword [eax]
add esp, 8
push eax
call esi
test eax, eax
lea ecx, [esp + 0x28]
sete bl
call fcn.00406e10
test bl, bl
je 0x432afd
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.Microsoft.VC90.CRT
call fcn.00412200
add esp, 8
lea esi, [esp + 0x20]
lea edi, [esp + 0x14]
mov byte [esp + 0xe4], 0x17
call fcn.00434ec0
test eax, eax
jne 0x432aec
push str.copy_vccrt_dir_for_patch.exe_failed
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov ecx, edi
call fcn.00406e10
lea ecx, [esp + 0x20]
call fcn.00406e10
lea ecx, [esp + 0x34]
call fcn.00406e10
lea ecx, [esp + 0x38]
call fcn.00406e10
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 1
call fcn.00406e10
jmp 0x433063
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x14
call fcn.00406e10
call fcn.00433e70
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.004264f0
push eax
lea ecx, [esp + 0x58]
push ecx
mov ebx, 0x4a6498
mov byte [esp + 0xf4], 0x18
call fcn.00412200
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0x1a
call fcn.00406e10
test ebp, ebp
jle 0x432bf2
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047c76b
add esp, 4
push 0x14
mov dword [esp + 0x34], eax
call fcn.0047d26c
add esp, 4
test eax, eax
je 0x432b8f
mov esi, eax
call fcn.00433100
mov esi, eax
jmp 0x432b91
xor esi, esi
mov eax, dword [esp + 0xec]
mov dword [esi], eax
lea edi, [esi + 4]
lea eax, [esp + 0x34]
call fcn.00404fc0
lea edi, [esi + 8]
lea eax, [esp + 0x18]
call fcn.00404fc0
lea edi, [esi + 0xc]
lea eax, [esp + 0x38]
call fcn.00404fc0
lea edi, [esi + 0x10]
lea eax, [esp + 0x4c]
call fcn.00404fc0
xor edi, edi
test ebp, ebp
jle 0x432bf2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x433990
push 0
push 0
call ebx
mov ecx, dword [esp + 0x30]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, ebp
jl 0x432bd6
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.00433dc0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
test ebp, ebp
jle 0x432c5f
push 0xffffffffffffffff
push 1
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
cmp dword [esp + 0x44], edi
je 0x432c5f
cmp edi, ebp
jge 0x432c5f
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 0x432c57
inc edi
jmp 0x432c32
mov dword [esp + 0x44], 0
test esi, esi
je 0x432c71
call fcn.00433160
push esi
call fcn.0047ceda
add esp, 4
push ebx
call fcn.0047d358
add esp, 4
cmp dword [esp + 0x44], 0
jne 0x432c92
mov dword [esp + 0x1c], 7
lea ecx, [esp + 0x4c]
jmp 0x432a13
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xec]
push 1
push edx
mov ecx, ebx
call fcn.00434260
push ebx
lea esi, [esp + 0x30]
lea edi, [esp + 0x3c]
call fcn.00434d00
test eax, eax
jne 0x432cee
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, 0x4c5908
call fcn.00472890
add esp, 0x10
mov dword [esp + 0x1c], 0xb
lea ecx, [esp + 0x4c]
jmp 0x432a13
cmp dword [esp + 0x48], 0
mov ebp, ebx
je 0x432d91
lea eax, [ebp + 0x14]
push eax
lea edx, [esp + 0x28]
push edx
lea ebx, [ebp + 8]
call fcn.004264f0
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, 0x4a64c4
mov byte [esp + 0xf4], 0x1b
call fcn.00412200
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x1d
call fcn.00406e10
mov edx, dword [esp + 0x14]
push 3
lea ecx, [esp + 0x60]
push edx
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ecx
call fcn.004355c0
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 0x432d70
push eax
call fcn.0047d363
add esp, 4
lea edx, [esp + 0x14]
push edx
lea edi, [esp + 0x1c]
mov ecx, ebp
call fcn.00434030
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x1a
call fcn.00406e10
lea esi, [ebp + 8]
lea eax, [esp + 0x14]
push esi
push eax
mov ebx, 0x4a64c8
call fcn.00412200
mov edi, eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, 0x4a64e0
mov byte [esp + 0xf4], 0x1e
call fcn.00412200
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.00406e10
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x1a
call fcn.00406e10
test bl, bl
je 0x432f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a64f8
push 0x4a6510
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
lea eax, [esp + 0x24]
push esi
push eax
mov ebx, 0x4a6534
call fcn.00412200
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.00406e10
test bl, bl
jne 0x432ed2
lea ecx, [esp + 0x30]
push esi
push ecx
mov ebx, 0x4a654c
call fcn.00412200
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.00412200
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.00406e10
lea ecx, [esp + 0x30]
mov byte [esp + 0xe4], 0x1a
call fcn.00406e10
test bl, bl
je 0x432f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shuame_new.exe
push 0x4a65a4
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
mov ebx, dword [esp + 0x50]
xor edi, edi
mov byte [esp + 0x43], 0
test bl, 2
je 0x432eee
lea ecx, [esp + 0x14]
and ebx, 0xfffffffd
call fcn.00406e10
mov dword [esp + 0xe4], 0x1a
test bl, 1
je 0x432f07
lea ecx, [esp + 0x30]
call fcn.00406e10
cmp byte [esp + 0x43], 0
je 0x432f96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4a65f8
push 0x4a6610
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
jmp 0x432f9e
lea edx, [esp + 0x30]
push esi
push edx
mov ebx, 0x4a65c8
call fcn.00412200
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xf0], 0x20
push ecx
mov ebx, 0x4a65e0
mov dword [esp + 0x60], 1
call fcn.00412200
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 0x432ed8
mov byte [esp + 0x43], 1
jmp 0x432edd
test edi, edi
jne 0x433029
cmp dword [esp + 0x48], 0
je 0x43300a
lea eax, [ebp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, esi
call fcn.004264f0
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, 0x4a6634
mov byte [esp + 0xf4], 0x21
call fcn.00412200
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x23
call fcn.00406e10
push esi
lea edi, [esp + 0x18]
mov ecx, ebp
call fcn.00434030
mov edx, dword [esp + 0x14]
push 1
push edx
mov ecx, ebp
call fcn.00434260
mov ecx, edi
mov byte [esp + 0xe4], 0x1a
call fcn.00406e10
mov eax, dword [esp + 0x2c]
push 1
push eax
mov ecx, ebp
call fcn.00434260
mov dword [esp + 0x1c], 8
lea ecx, [esp + 0x4c]
jmp 0x432a13
lea ecx, [esp + 0x4c]
jmp 0x432ab6
push str.patch_package_magic_number_not_match
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
je 0x433063
mov edx, ecx
mov ecx, dword [esp + 0xec]
push 1
push edx
call fcn.00434260
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x433073
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x3c]
cmp dword [esi - 0xc], 0
je 0x43308c
mov ecx, dword [esp + 0xec]
push 1
push esi
call fcn.00434260
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 0x4330b0
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 0x4330db
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