Function at 0x10011580
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10040d89
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x1007d664]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007d664]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
call fcn.10024fb0
push eax
push str.__wnbldy_d.ini
push 0xff
lea eax, [esp + 0x160]
push 0xff
push eax
call fcn.1002ff23
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x14
lea ecx, [esp + 0x154]
push ecx
xor edi, edi
push edi
push str.addjsnum
push str.lock
call esi
lea edx, [esp + 0x154]
push edx
push edi
push str.addsznum
push str.lock
mov ebp, eax
call esi
mov ebx, eax
lea eax, [esp + 0x154]
push eax
push edi
push str.deljsnum
push str.lock
call esi
lea ecx, [esp + 0x154]
push ecx
push edi
push str.delsznum
push str.lock
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
test ebp, ebp
mov dword [esp + 0x260], edi
jle 0x1001174f
push edi
push str.addjs_d
push 0x14
lea edx, [esp + 0x4c]
push 0x14
push edx
call fcn.1002ff23
add esp, 0x14
lea eax, [esp + 0x154]
push eax
push 0xff
lea ecx, [esp + 0x5c]
push ecx
push 0x1004326a
lea edx, [esp + 0x50]
push edx
push str.lock
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x54], 0
je 0x10011744
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100116b8
sub eax, edx
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call fcn.1000e960
mov ecx, dword [0x10081444]
mov eax, dword [0x1008143c]
add ecx, 1
cmp eax, ecx
ja 0x100116f5
push 1
mov ecx, 0x10081434
call fcn.10010550
mov eax, dword [0x1008143c]
mov edx, dword [0x10081440]
mov ecx, dword [0x10081444]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x1001170a
sub esi, eax
mov edx, dword [0x10081438]
cmp dword [edx + esi*4], 0
jne 0x10011729
push 0x20
call fcn.1002ee26
mov ecx, dword [0x10081438]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [0x10081438]
mov esi, dword [edx + esi*4]
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1000f0c0
add dword [0x10081444], 1
add edi, 1
cmp edi, ebp
jl 0x10011668
xor edi, edi
test ebx, ebx
jle 0x10011846
lea esp, [esp]
push edi
push str.addsz_d
push 0x14
lea ecx, [esp + 0x4c]
push 0x14
push ecx
call fcn.1002ff23
add esp, 0x14
lea edx, [esp + 0x154]
push edx
push 0xff
lea eax, [esp + 0x5c]
push eax
push 0x1004326a
lea ecx, [esp + 0x50]
push ecx
push str.lock
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x54], 0
je 0x1001183b
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100117b0
sub eax, edx
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x2c]
call fcn.1000e960
mov eax, dword [0x10081480]
lea ecx, [eax + 1]
mov eax, dword [0x10081478]
cmp eax, ecx
ja 0x100117ec
push 1
mov ecx, 0x10081470
call fcn.10010550
mov eax, dword [0x10081478]
mov edx, dword [0x1008147c]
mov ecx, dword [0x10081480]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x10011801
sub esi, eax
mov edx, dword [0x10081474]
cmp dword [edx + esi*4], 0
jne 0x10011820
push 0x20
call fcn.1002ee26
mov ecx, dword [0x10081474]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [0x10081474]
mov esi, dword [edx + esi*4]
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1000f0c0
add dword [0x10081480], 1
add edi, 1
cmp edi, ebx
jl 0x10011760
mov ebx, dword [esp + 0x14]
xor edi, edi
test ebx, ebx
jle 0x10011974
push edi
push str.deljs_d
push 0x14
lea ecx, [esp + 0x4c]
push 0x14
push ecx
call fcn.1002ff23
add esp, 0x14
lea edx, [esp + 0x154]
push edx
push 0xff
lea eax, [esp + 0x5c]
push eax
push 0x1004326a
lea ecx, [esp + 0x50]
push ecx
push str.lock
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x54], 0
je 0x10011969
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100118a4
sub eax, edx
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x2c]
call fcn.1000e960
mov eax, dword [0x100813b8]
lea ecx, [eax + 1]
mov eax, dword [0x100813b0]
cmp eax, ecx
ja 0x100118e0
push 1
mov ecx, 0x100813a8
call fcn.10010550
mov eax, dword [0x100813b0]
mov edx, dword [0x100813b4]
mov ecx, dword [0x100813b8]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x100118f5
sub esi, eax
mov edx, dword [0x100813ac]
cmp dword [edx + esi*4], 0
jne 0x10011914
push 0x20
call fcn.1002ee26
mov ecx, dword [0x100813ac]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [0x100813ac]
mov eax, dword [edx + esi*4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x260], 1
je 0x1001195a
mov cl, byte [esp + 0x20]
mov byte [eax], cl
push 0xffffffffffffffff
lea ecx, [eax + 4]
push 0
lea edx, [esp + 0x2c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.1000e790
add dword [0x100813b8], 1
mov byte [esp + 0x260], 0
add edi, 1
cmp edi, ebx
jl 0x10011854
xor edi, edi
cmp dword [esp + 0x18], edi
jle 0x10011aa3
mov bl, 2
push edi
push str.delsz_d
push 0x14
lea eax, [esp + 0x4c]
push 0x14
push eax
call fcn.1002ff23
add esp, 0x14
lea ecx, [esp + 0x154]
push ecx
push 0xff
lea edx, [esp + 0x5c]
push edx
push 0x1004326a
lea eax, [esp + 0x50]
push eax
push str.lock
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x54], 0
je 0x10011a96
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100119d2
sub eax, edx
push eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x2c]
call fcn.1000e960
mov edx, dword [0x10081458]
mov eax, dword [0x10081450]
add edx, 1
cmp eax, edx
ja 0x10011a0f
push 1
mov ecx, 0x10081448
call fcn.10010550
mov eax, dword [0x10081450]
mov ecx, dword [0x10081454]
mov edx, dword [0x10081458]
lea esi, [edx + ecx]
cmp eax, esi
ja 0x10011a24
sub esi, eax
mov eax, dword [0x1008144c]
cmp dword [eax + esi*4], 0
jne 0x10011a42
push 0x20
call fcn.1002ee26
mov ecx, dword [0x1008144c]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [0x1008144c]
mov eax, dword [edx + esi*4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x260], bl
je 0x10011a87
mov cl, byte [esp + 0x20]
mov byte [eax], cl
push 0xffffffffffffffff
lea ecx, [eax + 4]
push 0
lea edx, [esp + 0x2c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.1000e790
add dword [0x10081458], 1
mov byte [esp + 0x260], 0
add edi, 1
cmp edi, dword [esp + 0x18]
jl 0x10011982
cmp dword [esp + 0x3c], 0x10
jb 0x10011ab7
mov eax, dword [esp + 0x28]
push eax
call fcn.1002ee90
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1002e913
add esp, 0x250
ret