Function at 0x413e47
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x18
mov eax, 0x45cae8
call fcn.0043ac8b
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x410], ax
xor esi, esi
lea eax, [ebp + 0x412]
push esi
push eax
mov dword [ebp - 0x20], ecx
call fcn.0043a190
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.wd.ini
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x410]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.itemcount
push str.general
call esi
push 0x47bc90
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00402172
and dword [ebp - 4], 0
xor eax, eax
push edi
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.0043a190
xor eax, eax
push edi
mov word [ebp + 0x208], ax
xor edi, edi
lea eax, [ebp + 0x20a]
push edi
push eax
call fcn.0043a190
add esp, 0x18
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
jle 0x41401e
mov edi, str.items
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.id_d
push eax
call fcn.00404c93
add esp, 0xc
lea eax, [ebp + 0x410]
push eax
push 0
push dword [ebp - 0x14]
push edi
call esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push str.logname_d
push eax
call fcn.00404c93
add esp, 0xc
lea eax, [ebp + 0x410]
push eax
push ebx
lea eax, [ebp]
push eax
push 0x460a50
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x413fba
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x24]
call fcn.004062be
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
add ecx, 0x34
mov byte [ebp - 4], 1
call fcn.00413c3c
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004014f1
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.displayname_d
push eax
call fcn.00404c93
add esp, 0xc
lea eax, [ebp + 0x410]
push eax
push ebx
lea eax, [ebp + 0x208]
push eax
push 0x460a50
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41400d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
add ecx, 0x54
call fcn.00413cff
lea ecx, [ebp + 0x208]
push ecx
mov ecx, eax
call fcn.00404c6e
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x413f2e
xor edi, edi
lea eax, [ebp + 0x410]
push eax
push edi
push str.downcount
mov ebx, str.general
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
jle 0x414084
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.id_d
push eax
call fcn.00404c93
add esp, 0xc
lea eax, [ebp + 0x410]
push eax
push edi
push dword [ebp - 0x14]
push str.downids
call esi
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x414079
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
add ecx, 0x74
call fcn.00415440
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x41403d
lea eax, [ebp + 0x410]
push eax
push edi
push str.imcount
push ebx
call esi
xor ebx, ebx
cmp eax, edi
mov dword [ebp - 0x18], eax
jle 0x4140e0
push ebx
lea eax, [ebp - 0x14]
push str.id_d
push eax
call fcn.00404c93
add esp, 0xc
lea eax, [ebp + 0x410]
push eax
push edi
push dword [ebp - 0x14]
push 0x462084
call esi
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4140da
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
add ecx, 0x8c
call fcn.00415440
inc ebx
cmp ebx, dword [ebp - 0x18]
jl 0x41409d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014f1
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x61c
leave
ret