Function at 0x474390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x621773
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.BOOL_CRunSoftUpd::GetServerUpdateVerAndExe_void_...........start
call fcn.0049ad90
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.0052f1e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0052f1e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0052f1e0
add esp, 0x28
mov dword [ebp - 0x84c], 7
xor eax, eax
mov dword [ebp - 0x850], 0
lea ecx, [ebp - 0x860]
mov word [ebp - 0x860], ax
mov edi, 0x2710
push 0xa
push str.UpdateRate
call fcn.00470470
mov ecx, dword [ebx + 0x4c8]
lea edx, [ebp - 0x860]
push edx
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x84c], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x47448b
push dword [ebp - 0x860]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x84c], 7
mov dword [ebp - 0x850], 0
mov word [ebp - 0x860], ax
test esi, esi
je 0x4744bf
cmp dword [esi + 0x14], 8
jb 0x4744b4
mov esi, dword [esi]
push esi
call fcn.00530546
add esp, 4
mov edi, eax
push 0x2710
push 1
call fcn.0049a6e0
add esp, 8
cmp eax, edi
jle 0x4744fb
mov ecx, 0x642138
sub ebx, ecx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx + 0x21a], ax
test ax, ax
jne 0x4744e0
or eax, 0xffffffff
jmp 0x474c0e
push 0x11
xor eax, eax
mov dword [ebp - 0x84c], 7
push str.UpdateProbability
lea ecx, [ebp - 0x860]
mov dword [ebp - 0x850], 0
mov word [ebp - 0x860], ax
call fcn.00470470
mov ecx, dword [ebx + 0x4c8]
lea edx, [ebp - 0x860]
push edx
mov dword [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x84c], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x474563
push dword [ebp - 0x860]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x84c], 7
mov dword [ebp - 0x850], 0
mov word [ebp - 0x860], ax
test esi, esi
je 0x4745e5
cmp dword [esi + 0x14], 8
jb 0x47458c
mov esi, dword [esi]
push 0x6426c0
push esi
call fcn.00530301
mov edi, eax
add esp, 8
test edi, edi
je 0x4745c9
push 0x6426c0
push 0
call fcn.00530301
push edi
mov esi, eax
call fcn.00530546
push esi
mov dword [ebx + 0x4d4], eax
call fcn.00530546
add esp, 0x10
mov dword [ebx + 0x4d8], eax
push dword [ebx + 0x4d8]
push 0
call fcn.0049a6e0
add esp, 8
cmp eax, dword [ebx + 0x4d4]
jg 0x4744f3
call fcn.004763c0
mov ecx, eax
call fcn.00497e70
push 0x6426c4
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x87c], eax
call fcn.0046e770
mov ecx, dword [ebx + 0x4c8]
lea eax, [ebp - 0x848]
push eax
mov dword [ebp - 4], 2
mov edx, dword [ecx]
call dword [edx + 0x1c]
cmp dword [ebp - 0x834], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x474640
push dword [ebp - 0x848]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
test esi, esi
je 0x47475e
cmp dword [esi + 0x14], 8
jb 0x47466f
mov eax, dword [esi]
jmp 0x474671
mov eax, esi
push eax
push str.update....................._s
call fcn.0049ad90
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x474687
mov esi, dword [esi]
push esi
call fcn.00530546
push 0
mov edi, eax
call fcn.00530b30
add esp, 8
mov dword [ebp - 0x880], edx
mov esi, eax
call fcn.004763c0
mov ecx, eax
call fcn.00497e50
push eax
lea ecx, [ebp - 0x860]
call fcn.0046e770
push 0xd
push str.WnPicInfo.ini
lea ecx, [ebp - 0x860]
mov dword [ebp - 4], 3
call fcn.00470270
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
cmovae eax, dword [ebp - 0x860]
push eax
push 0
push str.InstallTime
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x87c]
sub eax, esi
xor ecx, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp esi, edi
setl cl
push ecx
push str.update..........if..........._d_____lpszUseVestigeFile:_s
call fcn.0049ad90
add esp, 0xc
cmp esi, edi
jge 0x474740
cmp dword [ebp - 0x84c], 8
jb 0x474738
push dword [ebp - 0x860]
call fcn.0052d900
add esp, 4
or eax, 0xffffffff
jmp 0x474c0e
cmp dword [ebp - 0x84c], 8
mov dword [ebp - 4], 0xffffffff
jb 0x47475e
push dword [ebp - 0x860]
call fcn.0052d900
add esp, 4
push str.NewVer
lea ecx, [ebp - 0x848]
call fcn.0046e770
mov ecx, dword [ebx + 0x4c8]
lea edx, [ebp - 0x848]
push edx
mov dword [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x834], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x4747a7
push dword [ebp - 0x848]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
test esi, esi
je 0x4747d3
cmp dword [esi + 0x14], 8
jb 0x4747d0
mov esi, dword [esi]
push esi
jmp 0x4747d8
push 0x642138
lea edi, [ebx + 0x374]
mov ecx, edi
call fcn.0046e820
push str.NewMinVer
lea ecx, [ebp - 0x848]
call fcn.0046e770
mov ecx, dword [ebx + 0x4c8]
lea edx, [ebp - 0x848]
push edx
mov dword [ebp - 4], 5
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x834], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x47482e
push dword [ebp - 0x848]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
test esi, esi
je 0x47485a
cmp dword [esi + 0x14], 8
jb 0x474857
mov esi, dword [esi]
push esi
jmp 0x47485f
push 0x642138
lea ecx, [ebx + 0x38c]
call fcn.0046e820
push str.Default
lea ecx, [ebp - 0x848]
call fcn.0046e770
mov ecx, dword [ebx + 0x4c8]
lea edx, [ebp - 0x848]
push edx
mov dword [ebp - 4], 6
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x834], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x4748b3
push dword [ebp - 0x848]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
test esi, esi
je 0x4748f5
cmp dword [esi + 0x14], 8
jb 0x4748dc
mov esi, dword [esi]
lea ecx, [ebp - 0x830]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4748e2
jmp 0x474917
xor ecx, ecx
jmp 0x474900
movzx eax, word [ecx + 0x642138]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x832], ax
test ax, ax
jne 0x474900
cmp dword [edi + 0x14], 8
jb 0x47491f
mov edi, dword [edi]
push edi
call fcn.005304ba
lea eax, [ebx + 0x38c]
add esp, 4
cmp dword [eax + 0x14], 8
fstp dword [ebp - 0x888]
jb 0x47493c
mov eax, dword [eax]
push eax
call fcn.005304ba
lea edi, [ebx + 0x2fc]
add esp, 4
cmp dword [edi + 0x14], 8
fstp dword [ebp - 0x880]
jb 0x47495b
mov eax, dword [edi]
jmp 0x47495d
mov eax, edi
push eax
call fcn.005304ba
lea eax, [ebx + 0x314]
add esp, 4
cmp dword [eax + 0x14], 8
fstp dword [ebp - 0x87c]
jb 0x47497a
mov eax, dword [eax]
push eax
call fcn.005304ba
movss xmm0, dword [ebp - 0x87c]
add esp, 4
movss xmm1, dword [ebp - 0x888]
comiss xmm0, xmm1
fstp dword [ebp - 0x88c]
ja 0x4744f3
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x4749c0
movss xmm0, dword [ebp - 0x88c]
comiss xmm0, dword [ebp - 0x880]
jae 0x4744f3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0052f1e0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4749e8
mov eax, dword [edi]
jmp 0x4749ea
mov eax, edi
push eax
lea eax, [ebp - 0x218]
push str.Ver_s
push eax
call fcn.00530563
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x848]
push eax
call fcn.0046e770
mov ecx, dword [ebx + 0x4c8]
lea edx, [ebp - 0x848]
push edx
mov dword [ebp - 4], 7
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x834], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x474a4a
push dword [ebp - 0x848]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
test esi, esi
je 0x474a93
cmp dword [esi + 0x14], 8
jb 0x474a73
mov esi, dword [esi]
lea ecx, [ebp - 0x628]
lea esp, [esp]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x474a80
jmp 0x474aac
xor ecx, ecx
movzx eax, word [ecx + 0x642138]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x62a], ax
test ax, ax
jne 0x474a95
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474ab5
sub ecx, edx
mov eax, 0
sar ecx, 1
mov edx, 1
test ecx, ecx
cmovg eax, edx
cmp dword [ebx + 0x328], 8
mov dword [ebp - 0x880], eax
lea eax, [ebx + 0x314]
jb 0x474aea
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x474af2
mov edi, dword [edi]
push eax
push edi
lea eax, [ebp - 0x218]
push str.Ver_s__s
push eax
call fcn.00530563
add esp, 0x10
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x878]
push eax
call fcn.0046e770
mov ecx, dword [ebx + 0x4c8]
lea edx, [ebp - 0x878]
push edx
mov dword [ebp - 4], 8
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x864], 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jb 0x474b53
push dword [ebp - 0x878]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
test esi, esi
je 0x474b95
cmp dword [esi + 0x14], 8
jb 0x474b7c
mov esi, dword [esi]
lea ecx, [ebp - 0x420]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x474b82
jmp 0x474bb7
xor ecx, ecx
jmp 0x474ba0
movzx eax, word [ecx + 0x642138]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x422], ax
test ax, ax
jne 0x474ba0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474bc0
sub ecx, edx
mov eax, 0
sar ecx, 1
test ecx, ecx
mov ecx, 1
cmovg eax, ecx
mov ecx, dword [ebp - 0x880]
test ecx, ecx
jne 0x474bf4
test eax, eax
jne 0x474bf8
lea eax, [ebp - 0x830]
jmp 0x474c06
test eax, eax
je 0x474c00
lea eax, [ebp - 0x420]
jmp 0x474c06
lea eax, [ebp - 0x628]
push eax
mov ecx, ebx
call fcn.00473b10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret