Function at 0x411030
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4706c7
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x63c], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x411314
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x411076
sub edx, ecx
sar edx, 1
je 0x411314
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x4110a0
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x638], eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x411176
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea ecx, [ebp - 0x638]
cmp dword [esi + 0x5dc], 0
jne 0x4110eb
push str.PDL_ja_JP
jmp 0x4110f0
push str.PDL_OTHERS
call fcn.00401fa0
mov esi, dword [ebp - 0x638]
lea eax, [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push 0x104
push eax
push 0x486438
push 0x486a38
push esi
call edi
test eax, eax
je 0x411137
mov ecx, dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push eax
add ecx, 0xd0
call fcn.00401fa0
push ebx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x486438
push str.PDL_NAME
push esi
call edi
test eax, eax
je 0x4112f5
mov ecx, dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ecx + 0xd4]
call fcn.00401fa0
jmp 0x4112f5
push dword [0x49c9e8]
lea eax, [ebp - 0x638]
push 0x486cd0
push eax
call fcn.00405ae0
mov esi, dword [ebp - 0x638]
lea eax, [esi - 0x10]
push eax
call fcn.004029e0
add eax, 0x10
add esp, 0x10
mov dword [ebp - 0x634], eax
push str.PDL_OTHERS
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 1
call fcn.00401ff0
push 0x486a38
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 2
call fcn.00401ff0
mov byte [ebp - 4], 3
xor edi, edi
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x420]
push ebx
push 0x104
push eax
push 0x486438
push 0x486a38
push dword [ebp + edi*4 - 0x634]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x411226
inc edi
cmp edi, 3
jb 0x4111e0
jmp 0x41125c
mov ecx, dword [ebp - 0x63c]
lea edx, [ebp - 0x420]
lea edi, [edx + 2]
lea ecx, [ecx + 0xd0]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x411240
sub edx, edi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.00401eb0
xor edi, edi
nop
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x628]
push ebx
push 0x104
push eax
push 0x486438
push str.PDL_NAME
push dword [ebp + edi*4 - 0x634]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4112a6
inc edi
cmp edi, 3
jb 0x411260
jmp 0x4112dc
mov ecx, dword [ebp - 0x63c]
lea edx, [ebp - 0x628]
lea edi, [edx + 2]
lea ecx, [ecx + 0xd4]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4112c0
sub edx, edi
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.00401eb0
push fcn.004018d0
push 3
push 4
lea eax, [ebp - 0x634]
mov byte [ebp - 4], 0
push eax
call fcn.0044af20
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411314
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 8