Function at 0x10013d64
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x10013f86
cmp dword [edi + 4], 0x13f
jne 0x10013dbe
lea eax, [esi + 0x9d6]
push eax
lea eax, [ebp - 0x120]
push 0x104
push eax
push ebx
push str.url1
push 0x10021390
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x120]
lea ecx, [esi + 0xb5c]
push eax
call fcn.10001adb
cmp dword [edi + 4], 0x140
jne 0x10013dd7
push 0x10022350
lea ecx, [esi + 0xb5c]
call fcn.10001adb
cmp dword [edi + 4], 0x141
jne 0x10013df0
push 0x10022340
lea ecx, [esi + 0xb5c]
call fcn.10001adb
cmp dword [esi + 0x344], 1
jle 0x10013e7d
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
add eax, 0x140
cmp dword [edi + 4], eax
jne 0x10013e6e
xor eax, eax
lea edi, [ebp - 0x1b]
mov byte [ebp - 0x1c], bl
push dword [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push str.Urlname_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esi + 0x9d6]
push eax
lea eax, [ebp - 0x120]
push 0x104
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x10021390
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x120]
lea ecx, [esi + 0xb5c]
push eax
call fcn.10001adb
mov edi, dword [ebp + 0xc]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
dec eax
cmp eax, dword [esi + 0x344]
jl 0x10013e04
mov eax, dword [esi + 0x344]
add eax, 0x142
cmp eax, dword [edi + 4]
jne 0x10013e9f
lea eax, [esi + 0x242]
lea ecx, [esi + 0xb5c]
push eax
call fcn.10001adb
mov eax, dword [esi + 0xb5c]
cmp dword [eax - 8], 0x50
jge 0x10013f86
cmp dword [esi + 0xb60], ebx
jne 0x10013ebf
mov ecx, dword [edi]
mov dword [esi + 0xb60], ecx
cmp dword [edi + 8], 0xfffffdf8
jne 0x10013ed6
push 0x4f
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x10013f33
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x10013ef6
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp - 4]
mov dword [esi + 0x78], eax
lea ecx, [ecx + ecx + 2]
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
push dword [ebp - 4]
push dword [esi + 0x78]
push 0xffffffffffffffff
push dword [esi + 0xb5c]
push ebx
push ebx
call edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x78]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0xb60]
cmp eax, ebx
je 0x10013f86
cmp byte [esi + 0xb64], bl
jne 0x10013f86
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x3c
push 3
push 0x403
push eax
call edi
push ebx
push dword [esi + 0xb50]
push 0x413
push dword [esi + 0xb60]
call edi
push ebx
push dword [esi + 0xb4c]
push 0x414
push dword [esi + 0xb60]
call edi
mov byte [esi + 0xb64], 1
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc