Function at 0x404dd2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41a66e
call fcn.00410f20
sub esp, 0x2ac
mov eax, dword [0x4240b8]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.00404c6e
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2a0]
cmp dword [eax - 0xc], ebx
je 0x405218
push str.localhost
push 0x4256d8
call fcn.0040f48b
test eax, eax
pop ecx
pop ecx
jne 0x405218
push esi
push edi
call fcn.0040a91f
mov esi, eax
cmp esi, ebx
je 0x404e3b
cmp dword [ebp + 0xc], ebx
je 0x404e45
mov dword [0x424c70], 0xa
mov eax, dword [0x424e6c]
mov edi, 0x424e6c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x29c], eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
push eax
push 0x4254d0
push dword [0x424dcc]
lea eax, [ebp - 0x29c]
push eax
call fcn.004023bd
add esp, 0x18
cmp esi, ebx
je 0x404ea9
cmp dword [ebp + 0xc], ebx
je 0x404ea9
push 0x41da7c
lea eax, [ebp - 0x29c]
push eax
call fcn.004047bc
jmp 0x404ed4
lea eax, [ebp + 0xc]
push eax
call fcn.0040a70a
pop ecx
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea esi, [ebp - 0x29c]
call fcn.004052de
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [0x424e6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 3
push dword [0x425f10]
lea eax, [ebp - 0x2a4]
push str.minitype_d
push eax
call fcn.0040523f
add esp, 0xc
push dword [ebp - 0x2a4]
lea esi, [ebp - 0x29c]
call fcn.004052de
push str.dycfgver
mov eax, esi
push eax
call fcn.004047bc
lea eax, [ebp + 0xc]
push eax
call fcn.0040a5ee
pop ecx
mov byte [ebp - 4], 4
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.00404a70
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252d
push 0x41e134
mov eax, esi
push eax
call fcn.004047bc
lea eax, [ebp + 0xc]
push eax
call fcn.0040a67c
pop ecx
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.00404a70
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252d
cmp word [0x425a88], bx
je 0x404fa8
push dword [0x424dc8]
mov eax, esi
push eax
call fcn.004047bc
push 0x425a88
mov eax, esi
push eax
call fcn.004047bc
push 0x104
lea eax, [ebp - 0x298]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x298]
push 0x5c
push eax
call fcn.0040f2ff
pop ecx
pop ecx
push dword [0x424db4]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x298]
push eax
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x41da7c
push dword [0x424dbc]
push dword [0x424db8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [0x424dc4]
lea eax, [ebp - 0x29c]
push eax
call fcn.004047bc
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.004047bc
push 0x41e12c
push 0x41e128
lea eax, [ebp - 0x29c]
push eax
call fcn.004043ff
push dword [ebp - 0x29c]
push str.GetNewDownloadUrls_command__s_n
call fcn.00409adb
mov eax, dword [0x424e6c]
pop ecx
pop ecx
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 6
mov eax, dword [0x424e6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 7
lea esi, [ebp - 0x2a8]
call fcn.00405252
lea eax, [ebp - 0x2b8]
push eax
call fcn.004067e3
mov byte [ebp - 4], 8
push dword [0x424c6c]
lea eax, [ebp - 0x2b8]
push 0x4256d8
call fcn.00406883
test eax, eax
je 0x40512a
push str.GetNewDownloadUrls_connect_succeed._n
call fcn.00409adb
push dword [0x424c70]
lea eax, [ebp + 0xc]
push dword [ebp - 0x29c]
push dword [0x424dc0]
push eax
call fcn.004023bd
add esp, 0x14
push dword [ebp + 0xc]
lea eax, [ebp - 0x2b8]
push 0x41e090
call fcn.004068d1
test eax, eax
je 0x40512a
push dword [ebp + 0xc]
push str.GetNewDownloadUrls_OpenRequest_succeed.__s_n
call fcn.00409adb
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x2b8]
call fcn.00406927
test eax, eax
je 0x40512a
push str.GetNewDownloadUrls_SendRequest_succeed._n
call fcn.00409adb
pop ecx
lea eax, [ebp - 0x2a8]
push eax
mov eax, esi
push eax
call fcn.00406a62
cmp dword [ebp - 0x2b0], ebx
je 0x405144
push dword [ebp - 0x2b0]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2b0], ebx
cmp dword [ebp - 0x2b4], ebx
je 0x40515e
push dword [ebp - 0x2b4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2b4], ebx
mov edi, dword [ebp - 0x2a8]
push edi
lea eax, [ebp + 0xc]
call fcn.00405291
push dword [ebp + 0xc]
push str.GetNewDownloadUrls_Read__s_n
call fcn.00409adb
pop ecx
pop ecx
push dword [ebp - 0x2a0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403578
test eax, eax
je 0x4051bf
cmp dword [0x424c70], 0x14
jle 0x4051bf
dec dword [0x424c70]
push 0x927c0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 7
call fcn.00406853
jmp 0x40507a
lea esi, [ebp - 0x2b8]
mov byte [ebp - 4], 7
call fcn.00406853
call fcn.0040ae0f
cmp dword [edi - 0xc], ebx
jne 0x4051dd
or ebx, 0xffffffff
jmp 0x4051e7
mov eax, dword [ebp + 8]
call fcn.004045dc
mov ebx, eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252d
lea eax, [edi - 0x10]
call fcn.0040252d
mov eax, dword [ebp - 0x2a4]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x29c]
add eax, 0xfffffff0
call fcn.0040252d
pop edi
pop esi
mov eax, dword [ebp - 0x2a0]
add eax, 0xfffffff0
call fcn.0040252d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.00410727
leave
ret 8