Function at 0x406730
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42103c
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x11c]
push str.Parse_PatchList_enter...
mov dword [esp + 0x18], eax
call fcn.004124a0
add esp, 4
lea ecx, [esp + 0x34]
call fcn.0040fd30
push 0x17
xor ebx, ebx
push str.Xp_patchPatchList.dat
lea eax, [esp + 0x3c]
mov dword [esp + 0x11c], ebx
call fcn.00401740
mov eax, dword [esp + 0x38]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jae 0x4067b8
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4067ea
push str.the_patchList_is_not_exist...
call fcn.00412560
add esp, 4
cmp dword [esp + 0x4c], esi
jb 0x4067e3
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041288e
add esp, 4
xor eax, eax
jmp 0x406b14
push 6
mov edi, 0xf
push str.PATCH1
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401c30
mov byte [esp + 0x114], 1
push ebx
push 0x423d93
lea ecx, [esp + 0x58]
lea ebp, [edi - 0xe]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00401c30
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x118], 2
call fcn.00402500
mov byte [esp + 0x114], 3
jmp 0x406850
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x40685e
lea ebx, [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x40686c
lea ecx, [esp + 0x38]
push 0x424de8
lea edx, [esp + 0x54]
call fcn.00411840
add esp, 4
test eax, eax
je 0x406aa1
push 0x74
lea eax, [esp + 0x70]
push 0
push eax
call fcn.004183e0
add esp, 0xc
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x78]
call fcn.00401850
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x4068b6
lea ebx, [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x4068c4
lea ecx, [esp + 0x38]
push 0x424df4
lea edx, [esp + 0x54]
call fcn.00411840
add esp, 4
test eax, eax
jne 0x4068e6
push str.read_os_type_fail
call fcn.00412560
add esp, 4
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x94]
call fcn.00401850
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x406909
lea ebx, [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x406917
lea ecx, [esp + 0x38]
push 0x424e10
lea edx, [esp + 0x54]
call fcn.00411840
add esp, 4
test eax, eax
jne 0x406939
push str.read_url_fail
call fcn.00412560
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xb0]
call fcn.00401850
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x40695c
lea ebx, [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x40696a
lea ecx, [esp + 0x38]
push 0x424e24
lea edx, [esp + 0x54]
call fcn.00411840
add esp, 4
test eax, eax
jne 0x40698c
push str.read_parameter_fail
call fcn.00412560
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0xcc]
call fcn.00401850
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x4069af
lea ebx, [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], esi
jae 0x4069bd
lea ecx, [esp + 0x38]
push 0x424e44
lea edx, [esp + 0x54]
call fcn.00411840
add esp, 4
test eax, eax
jne 0x4069df
push str.read_isInstall_fail
call fcn.00412560
add esp, 4
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x4069ed
lea eax, [esp + 0x54]
push eax
call fcn.004137c2
mov ebx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x6c]
push edx
add ebx, 0x94
mov dword [esp + 0xe0], eax
call fcn.00407a80
lea edi, [esp + 0x18]
call fcn.004076e0
push 5
push str.PATCH
mov ecx, edi
inc ebp
call fcn.00401c30
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
push 0xa
lea eax, [esp + 0xe8]
push eax
push ebp
call fcn.004204b2
mov ecx, eax
add esp, 0xc
lea esi, [ecx + 1]
jmp 0x406a80
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406a80
sub ecx, esi
push ecx
push eax
lea eax, [esp + 0x20]
call fcn.00401740
mov edi, 0xf
lea esi, [edi + 1]
jmp 0x406850
push str.Parse_PatchList_leave...
call fcn.004124a0
add esp, 4
lea esi, [esp + 0x6c]
call fcn.00406b40
mov esi, 0x10
cmp dword [esp + 0x68], esi
jb 0x406acf
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041288e
add esp, 4
xor ebx, ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x30], esi
jb 0x406af0
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041288e
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], esi
jb 0x406b0f
mov eax, dword [esp + 0x38]
push eax
call fcn.0041288e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00412899
add esp, 0x104
ret 4