Function at 0x408780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5564e8
push str.UpdateFail.log
mov ebx, ecx
call fcn.005264ba
mov esi, eax
add esp, 8
test esi, esi
je 0x408c4b
lea eax, [ebp - 0x104]
push str._UPDATE_FAILED_LOG__n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087d0
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
lea edx, [ebp - 0x104]
push 0x556488
push edx
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408806
push edi
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00526fd1
lea ecx, [ebp - 0x104]
push str.OS_:
push ecx
call fcn.00525601
lea edx, [ebp - 0x104]
push edx
call fcn.00406c70
add esp, 0x1c
test eax, eax
je 0x40888c
lea edi, [ebp - 0x104]
dec edi
jmp 0x408850
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408850
mov ax, word [0x556478]
mov word [edi], ax
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408870
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
add esp, 0x10
lea edx, [ebp - 0x104]
push str.Free_Disk_Space_:
push edx
call fcn.00525601
lea eax, [ebp - 0x104]
push eax
call fcn.00408480
add esp, 0xc
test eax, eax
je 0x4088ee
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4088b7
mov cx, word [0x556478]
lea eax, [ebp - 0x104]
mov word [edi], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088d2
push esi
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00526fd1
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x556488
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 8
lea edx, [eax + 1]
jmp 0x408910
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408910
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
mov eax, dword [0x5a8024]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x40894a
mov edx, dword [eax - 0xc]
push edx
mov ecx, 0x5a8024
call fcn.00401320
mov eax, dword [0x5a8024]
push eax
lea eax, [ebp - 0x104]
push str.UpdateExe_:__s_n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408968
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
push str._patch_updatelist
lea edx, [ebp - 0x104]
push str.Updatelist_path_:__s_n
push edx
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089a3
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00526fd1
push str.http:__patch.pangyath.com_
lea ecx, [ebp - 0x104]
push str.UpdateServer_:__s_n
push ecx
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089e0
push esi
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00526fd1
push 1
lea eax, [ebp - 0x104]
push str.UseIntegrated_Pak_:__d_n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a18
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
mov edx, dword [ebx + 8]
push edx
lea eax, [ebp - 0x104]
push str.PathExe_:__s_n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408a52
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
mov edx, dword [ebx + 0xc]
push edx
lea eax, [ebp - 0x104]
push str.UpdateVer_:__s_n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408a90
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
mov edx, dword [ebx + 0x10]
push edx
lea eax, [ebp - 0x104]
push str.PatchNum_:__s_n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408ad0
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
mov edx, dword [ebx + 0x14]
push edx
lea eax, [ebp - 0x104]
push str.PrePatchNum_:__s_n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408b10
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
mov edx, dword [ebx + 0x18]
push edx
lea eax, [ebp - 0x104]
push str.Updatelist_Ver_:__s_n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b50
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
push str.v5.01
lea edx, [ebp - 0x104]
push str.Launcher_Ver_:__s_n
push edx
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
jmp 0x408b90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b90
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00526fd1
lea ecx, [ebp - 0x104]
push str._n_n
push ecx
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408bc6
push esi
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00526fd1
lea eax, [ebp - 0x104]
push str.Code_tRet1_tRet2_tRetText_t_tFailText_n
push eax
call fcn.00525601
lea eax, [ebp - 0x104]
add esp, 0x18
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408c00
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00526fd1
lea ecx, [ebx + 0x230]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408c27
push esi
sub eax, edi
push 1
push eax
push ecx
call fcn.00526fd1
push esi
call fcn.0052622a
add esp, 0x14
mov ecx, ebx
call fcn.00407b40
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00525092
mov esp, ebp
pop ebp
ret