Function at 0x407730
Capabilities:
Delete file
Get common file path
Move file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x466212
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x468], eax
push esi
push edi
mov eax, dword [0x485618]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov edi, ecx
push 0x104
lea eax, [esp + 0x270]
push 0
push eax
call fcn.0043ac90
push 0x104
lea ecx, [esp + 0x74]
push 0
push ecx
call fcn.0043ac90
push 0x104
lea edx, [esp + 0x184]
push 0
push edx
call fcn.0043ac90
add esp, 0x24
push 0x104
lea eax, [esp + 0x270]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x168]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x168]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4077e0
sub eax, edx
cmp byte [esp + eax + 0x167], 0x5c
jne 0x407809
lea edx, [esp + 0x168]
push edx
push str._s_config.dat
lea eax, [esp + 0x6c]
push eax
jmp 0x40781b
lea ecx, [esp + 0x168]
push ecx
push 0x46b884
lea edx, [esp + 0x6c]
push edx
call fcn.0043c05e
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00404190
push 0x50
push str.upd3.jtnet8.com
lea ecx, [esp + 0x28]
mov dword [esp + 0x488], 0
call fcn.004041b0
lea eax, [esp + 0x64]
push eax
push str.update_config_yhb.ini
lea ecx, [esp + 0x28]
call fcn.00404360
test eax, eax
jne 0x407a74
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x64]
push ecx
push eax
push str.auto
push str.config
call esi
cmp eax, 1
jne 0x4078ba
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x46b848
call fcn.00402d00
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.auto
mov byte [esp + 0x490], 1
call fcn.00402d00
mov ecx, edi
mov byte [esp + 0x48c], 0
call fcn.004066d0
lea edx, [esp + 0x64]
push edx
push 0
push str.option
push str.config
call esi
cmp eax, 1
jne 0x40790d
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x46b848
call fcn.00402d00
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.option
mov byte [esp + 0x490], 2
call fcn.00402d00
mov ecx, edi
mov byte [esp + 0x48c], 0
call fcn.004066d0
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x64]
push eax
push 0x1f
lea ecx, [esp + 0x4c]
push ecx
push 0x46adb8
push 0x46b83c
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407957
sub eax, edx
je 0x407a74
lea ecx, [esp + 0x14]
call fcn.00402500
push 0
push ecx
lea edx, [esp + 0x274]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x48c], 3
call fcn.00402d00
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.00402ef0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x44]
push ecx
push edx
mov byte [esp + 0x488], 4
call fcn.0043bea1
add esp, 8
test eax, eax
sete al
test al, al
je 0x4079f1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x480], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407b5c
lea eax, [esp + 0x168]
lea edx, [eax + 1]
jmp 0x407a00
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407a00
sub eax, edx
cmp byte [esp + eax + 0x167], 0x5c
jne 0x407a29
lea ecx, [esp + 0x168]
push ecx
push str._s_update.dat
lea edx, [esp + 0x6c]
push edx
jmp 0x407a3b
lea eax, [esp + 0x168]
push eax
push 0x46b81c
lea ecx, [esp + 0x6c]
push ecx
call fcn.0043c05e
add esp, 0xc
lea edx, [esp + 0x64]
push edx
push str.update_update_yhb.exe
lea ecx, [esp + 0x28]
call fcn.00404360
test eax, eax
je 0x407a8f
lea ecx, [esp + 0xc]
call fcn.00402590
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], 0
call fcn.004013e0
lea ecx, [esp + 0x20]
mov dword [esp + 0x480], 0xffffffff
call fcn.004042a0
xor al, al
jmp 0x407b83
push 0
push ecx
lea eax, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00402d00
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402ef0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x484], 5
call fcn.00406870
lea ecx, [esp + 0x1c]
call fcn.00402590
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00404330
add esp, 8
test al, al
jne 0x407a5a
push 0x104
lea ecx, [esp + 0x374]
push 0
push ecx
call fcn.0043ac90
lea edx, [esp + 0x278]
push edx
lea eax, [esp + 0x380]
push str._s.bak
push eax
call fcn.0043c05e
add esp, 0x18
lea ecx, [esp + 0x370]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x370]
push edx
lea eax, [esp + 0x270]
push eax
call esi
test eax, eax
je 0x407a5a
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x68]
push edx
call esi
lea ecx, [esp + 0xc]
call fcn.00402590
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], 0
call fcn.004013e0
lea ecx, [esp + 0x20]
mov dword [esp + 0x480], 0xffffffff
call fcn.004042a0
mov al, 1
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.0043a450
add esp, 0x478
ret