Function at 0x4079f0
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425d90
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x42e294]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x330], ecx
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp - 0x330]
call fcn.004084d0
test eax, eax
jne 0x407a6a
mov eax, dword [ebp - 0x330]
mov dword [eax + 0x46c], 3
xor eax, eax
jmp 0x408065
mov ecx, dword [ebp - 0x330]
mov dword [ecx + 0x46c], 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x330]
add eax, 4
push eax
call fcn.00412760
add esp, 8
mov ecx, dword [ebp - 0x330]
add ecx, 4
push ecx
push str._sUpdateTemp.dat
mov edx, dword [ebp - 0x330]
add edx, 0x368
push edx
call fcn.004126da
add esp, 0xc
mov eax, dword [ebp - 0x330]
add eax, 4
push eax
push str._s_version.ini
mov ecx, dword [ebp - 0x330]
add ecx, 0x108
push ecx
call fcn.004126da
add esp, 0xc
mov edx, dword [ebp - 0x330]
add edx, 4
push edx
push str._sUpdateUpdate.xml
mov eax, dword [ebp - 0x330]
add eax, 0x264
push eax
call fcn.004126da
add esp, 0xc
mov ecx, dword [ebp - 0x330]
add ecx, 4
push ecx
push str._sUpdate
lea edx, [ebp - 0x22c]
push edx
call fcn.004126da
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
call fcn.00401250
add esp, 4
test eax, eax
jne 0x407b33
xor eax, eax
jmp 0x408065
mov ecx, dword [ebp - 0x330]
add ecx, 0x108
push ecx
push 0x20
mov edx, dword [ebp - 0x330]
add edx, 0x20c
push edx
push 0x42789c
push 0x4278a0
push 0x4278a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x330]
add eax, 0x264
push eax
push str.http:__dl.ddong.com_static_update.xml
call fcn.004035b0
test eax, eax
jne 0x407b95
mov ecx, dword [ebp - 0x330]
mov dword [ecx + 0x46c], 1
xor eax, eax
jmp 0x408065
lea ecx, [ebp - 0x26c]
call fcn.004095f0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x330]
add edx, 0x264
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x29c], esp
push edx
call fcn.00404eb0
mov dword [ebp - 0x334], eax
lea ecx, [ebp - 0x26c]
call fcn.004098a0
push ecx
mov eax, esp
mov dword [ebp - 0x2a0], esp
push 0
push str._Root
push eax
lea ecx, [ebp - 0x26c]
call fcn.00409b80
mov dword [ebp - 0x338], eax
lea ecx, [ebp - 0x120]
call fcn.004087b0
mov dword [ebp - 0x33c], eax
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x120]
call fcn.004088c0
mov dword [ebp - 0x340], eax
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x344], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x344]
call fcn.0040bd40
mov byte [ebp - 0x2a1], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.0040e030
movzx eax, byte [ebp - 0x2a1]
test eax, eax
je 0x407cba
mov ecx, dword [ebp - 0x330]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x330]
mov dword [edx + 0x46c], 3
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.004087e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.004097b0
mov eax, dword [ebp - 0x2ac]
jmp 0x408065
push str.curVer
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x120]
call fcn.00408c90
mov dword [ebp - 0x348], eax
mov ecx, dword [ebp - 0x348]
mov dword [ebp - 0x34c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x34c]
push edx
mov ecx, dword [ebp - 0x330]
add ecx, 0x22c
call fcn.004085e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c8]
call fcn.00404f30
push str.mainVer
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00408c90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
call fcn.00404f70
push eax
call fcn.00412c01
add esp, 4
mov ecx, dword [ebp - 0x330]
mov dword [ecx + 0x874], eax
mov edx, dword [ebp - 0x330]
mov eax, dword [edx + 0x874]
cmp eax, dword [ebp - 0x230]
jbe 0x407dc6
mov ecx, dword [ebp - 0x330]
mov dword [ecx + 0x470], 1
push str.mainurl
lea edx, [ebp - 0x2e4]
push edx
lea ecx, [ebp - 0x120]
call fcn.00408c90
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x354], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x354]
push ecx
mov ecx, dword [ebp - 0x330]
add ecx, 0x248
call fcn.004085e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2e4]
call fcn.00404f30
jmp 0x408013
mov ecx, dword [ebp - 0x330]
add ecx, 0x22c
call fcn.00404f70
push eax
call fcn.00412c01
add esp, 4
mov esi, eax
mov edx, dword [ebp - 0x330]
add edx, 0x20c
push edx
call fcn.00412c01
add esp, 4
cmp esi, eax
jle 0x408013
mov eax, dword [ebp - 0x330]
mov dword [eax], 1
mov dword [ebp - 0x274], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x2e8], esp
push ecx
lea ecx, [ebp - 0x120]
call fcn.004088c0
mov dword [ebp - 0x358], eax
lea ecx, [ebp - 0x26c]
call fcn.0040ae10
mov dword [ebp - 0x35c], eax
mov edx, dword [ebp - 0x35c]
mov dword [ebp - 0x270], edx
mov dword [ebp - 0x278], 0
jmp 0x407e68
mov eax, dword [ebp - 0x278]
add eax, 1
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
cmp ecx, dword [ebp - 0x270]
jge 0x407fb6
push ecx
mov esi, esp
mov dword [ebp - 0x2ec], esp
mov edx, dword [ebp - 0x278]
push edx
push ecx
mov eax, esp
mov dword [ebp - 0x2f0], esp
push eax
lea ecx, [ebp - 0x120]
call fcn.004088c0
mov dword [ebp - 0x360], eax
push esi
lea ecx, [ebp - 0x26c]
call fcn.0040ace0
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
lea ecx, [ebp - 0x298]
call fcn.004087b0
mov dword [ebp - 0x36c], eax
mov byte [ebp - 4], 6
push str.Version
lea edx, [ebp - 0x294]
push edx
lea ecx, [ebp - 0x298]
call fcn.00408c90
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x330]
add eax, 0x20c
push eax
lea ecx, [ebp - 0x294]
push ecx
call fcn.00408640
add esp, 8
movzx edx, al
test edx, edx
je 0x407f93
mov dword [ebp - 0x274], 1
push str.FileName
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x298]
call fcn.00408c90
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
mov dword [ebp - 0x374], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x374]
push edx
mov ecx, dword [ebp - 0x330]
add ecx, 0x248
call fcn.004085e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30c]
call fcn.00404f30
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call fcn.00404f30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.004087e0
jmp 0x407fb6
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call fcn.00404f30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x298]
call fcn.004087e0
jmp 0x407e59
cmp dword [ebp - 0x274], 0
jne 0x408013
push 0x427908
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x120]
call fcn.00408c90
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0x37c], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x37c]
push edx
mov ecx, dword [ebp - 0x330]
add ecx, 0x248
call fcn.004085e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x328]
call fcn.00404f30
mov eax, dword [ebp - 0x330]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x32c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.00404f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.004087e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.004097b0
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041238f
mov esp, ebp
pop ebp
ret 4