Function at 0x407cf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45215c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc58
mov eax, dword [0x46dec0]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0xc5c], eax
mov dword [ebx + 0x2e0], 1
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0xc6c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x46f490]
push str.update.ini
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
mov byte [esp + 0xc7c], 1
call fcn.00402400
mov esi, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x10
push esi
push 0x800
lea edx, [esp + 0x60]
push edx
push 0x454da4
push str.Version
push str.Setting
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.0040d080
test eax, eax
jne 0x407dc6
mov dword [ebx + 0x2e0], eax
push esi
push 0x800
lea ecx, [esp + 0x60]
push ecx
push 0x454da4
push str.UpdateURL2
push str.Setting
call edi
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x58]
push 0x454da4
push eax
mov byte [esp + 0xc74], 2
call fcn.00433a76
add esp, 8
test eax, eax
je 0x407f36
lea eax, [esp + 0x58]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407e33
sub eax, edx
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00407270
mov byte [esp + 0x858], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x859]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x3c]
push 0x20
push edx
mov byte [esp + 0xc74], 3
stosb byte es:[edi], al
call fcn.0040be50
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00407180
lea eax, [esp + 0x3c]
push 0xd
push eax
call fcn.0040be50
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00407180
lea ecx, [esp + 0x3c]
push 0xa
push ecx
call fcn.0040be50
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00407180
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0040bbe0
lea eax, [esp + 0x860]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407ee4
sub eax, edx
push eax
lea ecx, [esp + 0x85c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00403240
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0xc6c], 2
jb 0x407f1b
mov edx, dword [esp + 0x40]
push edx
call fcn.0044989b
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x407f9c
push esi
push 0x800
lea ecx, [esp + 0x60]
push ecx
push 0x454da4
push str.UpdateURL
push str.Setting
call edi
lea edx, [esp + 0x58]
push 0x454da4
push edx
call fcn.00433a76
add esp, 8
test eax, eax
jne 0x407f7b
mov dword [ebx + 0x2e0], eax
jmp 0x407faa
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f82
sub eax, edx
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004015c0
jmp 0x407faa
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00407110
push esi
push 0x800
lea edx, [esp + 0x60]
push edx
push str.http:__sw.duoyi.com_m_index.shtm
push str.MiniPageLeft
push str.Setting
call edi
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea ecx, [ebx + 0x2e4]
mov dword [esp + 0x10], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407fd7
sub eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004015c0
push esi
push 0x800
lea ecx, [esp + 0x60]
push ecx
push str.http:__sw.duoyi.com_m_pic.shtm
push str.MiniPageRight
push str.Setting
call edi
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea ecx, [ebx + 0x2e8]
mov dword [esp + 0x10], edx
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408020
sub eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004015c0
push esi
push 0x800
lea ecx, [esp + 0x60]
push ecx
push str.http:__sw.duoyi.com_down_patch.html
push str.DownPage
push str.Setting
call edi
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea ecx, [ebx + 0x2ec]
mov dword [esp + 0x10], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408063
sub eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004015c0
push esi
push 0x800
lea ecx, [esp + 0x60]
push ecx
push str.swmain.dll
push str.GameName
push str.Setting
call edi
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea ecx, [ebx + 0x2f0]
mov dword [esp + 0x10], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4080a6
sub eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004015c0
push esi
push 0x800
lea ecx, [esp + 0x60]
push ecx
push str.patch.info
push str.PatchInfo
push str.Setting
call edi
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea ecx, [ebx + 0x2f4]
mov dword [esp + 0x10], edx
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4080f0
sub eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004015c0
push esi
push 0x2710
push str.Timeout
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0x800
lea ecx, [esp + 0x60]
push ecx
push 0x454da4
push str.SwitchURL
push str.Setting
mov dword [esp + 0x40], eax
call edi
lea eax, [esp + 0x58]
lea edx, [eax + 1]
lea ecx, [ebx + 0x2f8]
mov dword [esp + 0x10], edx
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408150
sub eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004015c0
push esi
push 0x1388
push str.SwitchTimeout
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 1
push str.CheckVer
push str.updater
mov dword [ebx + 0x2fc], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0
push str.CheckPatchedHash
push str.updater
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0x800
lea ecx, [esp + 0x60]
push ecx
push 0x454da4
push 0x455fc0
push str.updater
mov dword [esp + 0x28], eax
call edi
lea edx, [esp + 0x58]
push 0x454da4
push edx
call fcn.00433a76
add esp, 8
test eax, eax
je 0x4081f1
lea eax, [esp + 0x58]
push eax
mov ecx, 0x46f474
call fcn.0040acc0
mov eax, dword [ebx + 0x2e0]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x34], edi
je 0x40826d
cmp dword [ebx + 0x2dc], edi
mov eax, str.mini
jne 0x408213
mov eax, str.main
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push str.Version
push str.Setting
push str.update.ini
push edx
mov edx, dword [esp + 0x28]
push 0x3a8
push ecx
mov ecx, dword [esp + 0x3c]
push 0x200000
push str.http:__dl.duoyi.com_downloader_wz_update_limit.txt
push str.patch
push eax
mov eax, dword [esp + 0x50]
push edx
push eax
push ecx
lea edx, [ebx + 0xa0]
push edx
lea ecx, [ebx + 0xc8]
call fcn.004115a0
mov edi, eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xc6c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xc6c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov dword [esp + 0xc6c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4082de
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc64]
mov edx, dword [esp + 0x34]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc5c]
mov eax, edi
call fcn.00432fde
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret