Function at 0x4085d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x555158
push str.UpdateFail.log
mov ebx, ecx
call fcn.0052656a
mov esi, eax
add esp, 8
test esi, esi
je 0x408beb
lea eax, [ebp - 0x104]
push str._UPDATE_FAILED_LOG__n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408620
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
lea edx, [ebp - 0x104]
push str._n
push edx
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408656
push edi
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00527141
lea ecx, [ebp - 0x104]
push str.OS_:
push ecx
call fcn.00525791
lea edx, [ebp - 0x104]
push edx
call fcn.004068e0
add esp, 0x1c
test eax, eax
je 0x4086dc
lea edi, [ebp - 0x104]
dec edi
jmp 0x4086a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4086a0
mov ax, word [0x5550ec]
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 0x4086c0
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
add esp, 0x10
lea edx, [ebp - 0x104]
push str.Free_Disk_Space_:
push edx
call fcn.00525791
lea eax, [ebp - 0x104]
push eax
call fcn.004082d0
add esp, 0xc
test eax, eax
je 0x40873e
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408707
mov cx, word [0x5550ec]
lea eax, [ebp - 0x104]
mov word [edi], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408722
push esi
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00527141
add esp, 0x10
lea eax, [ebp - 0x104]
push str._n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 8
lea edx, [eax + 1]
jmp 0x408760
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408760
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
mov eax, dword [0x5a6f2c]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x40879a
mov edx, dword [eax - 0xc]
push edx
mov ecx, 0x5a6f2c
call fcn.00401310
mov eax, dword [0x5a6f2c]
push eax
lea eax, [ebp - 0x104]
push str.UpdateExe_:__s_n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087b8
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
push str._new_Service_S4_Patch_updatelist
lea edx, [ebp - 0x104]
push str.Updatelist_path_:__s_n
push edx
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087f3
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00527141
push str.http:__py.4th.in_Nome_000000000
lea ecx, [ebp - 0x104]
push str.UpdateServer_:__s_n
push ecx
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408830
push esi
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00527141
push 1
lea eax, [ebp - 0x104]
push str.UseIntegrated_Pak_:__d_n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408868
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
mov edx, dword [ebx + 8]
push edx
lea eax, [ebp - 0x104]
push str.PathExe_:__s_n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4088a2
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
mov edx, dword [ebx + 0xc]
push edx
lea eax, [ebp - 0x104]
push str.UpdateVer_:__s_n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4088e0
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
mov edx, dword [ebx + 0x10]
push edx
lea eax, [ebp - 0x104]
push str.PatchNum_:__s_n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408920
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
mov edx, dword [ebx + 0x14]
push edx
lea eax, [ebp - 0x104]
push str.PrePatchNum_:__s_n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408960
push esi
sub eax, ecx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
mov edx, dword [ebx + 0x18]
push edx
lea eax, [ebp - 0x104]
push str.Updatelist_Ver_:__s_n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089a0
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
push str.v5.01
lea edx, [ebp - 0x104]
push str.Launcher_Ver_:__s_n
push edx
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x1c
lea ecx, [eax + 1]
jmp 0x4089e0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4089e0
push esi
sub eax, ecx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00527141
lea edi, [ebx + 0x830]
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a07
sub eax, edx
cmp eax, 1
jae 0x408a44
lea eax, [ebx + 0x870]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a20
sub eax, edx
cmp eax, 1
jae 0x408a44
lea ecx, [ebp - 0x104]
push str._invalid_InternetStatusInfo__buffer_is_empty___n
push ecx
call fcn.00525791
add esp, 8
jmp 0x408a76
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a50
sub eax, edx
jne 0x408a61
lea edi, [ebx + 0x870]
push edi
lea edx, [ebp - 0x104]
push str.InternetStatusInfo_:__s_n
push edx
call fcn.00525791
add esp, 0xc
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a80
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00527141
lea edi, [ebx + 0x630]
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408aa7
sub eax, edx
je 0x408b47
lea ecx, [ebp - 0x104]
push str._n
push ecx
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408ad3
push esi
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00527141
lea eax, [ebp - 0x104]
push str._ResponseHeader_Info__n_n
push eax
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b10
push esi
sub eax, edx
push 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00527141
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b31
push esi
sub eax, edx
push 1
push eax
push edi
call fcn.00527141
add esp, 0x10
lea edx, [ebp - 0x104]
push str._n_n
push edx
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b64
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00527141
lea ecx, [ebp - 0x104]
push str.Code_tRet1_tRet2_tRetText_t_tFailText_n
push ecx
call fcn.00525791
lea eax, [ebp - 0x104]
add esp, 0x18
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408ba0
push esi
sub eax, ecx
push 1
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00527141
lea ecx, [ebx + 0x230]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408bc7
push esi
sub eax, edi
push 1
push eax
push ecx
call fcn.00527141
push esi
call fcn.005262da
add esp, 0x14
mov ecx, ebx
call fcn.00407960
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00525222
mov esp, ebp
pop ebp
ret