Function at 0x40cb20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4299fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
mov eax, dword [0x434250]
push ebx
push esi
mov dword [esp + 0x2a8], eax
mov eax, dword [0x435644]
mov esi, ecx
push edi
mov ecx, 0x435644
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x28], bl
mov ecx, 0x1f
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x19], ecx
stosw word es:[edi], ax
mov dword [esp + 0x1d], ecx
mov dword [esp + 0x21], ecx
stosb byte es:[edi], al
mov word [esp + 0x25], cx
xor eax, eax
mov byte [esp + 0x27], cl
mov byte [esp + 0xa8], bl
mov ecx, 0x7f
lea edi, [esp + 0xa9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
cmp eax, 1
mov dword [esp + 0x2bc], ebx
mov byte [esp + 0x18], bl
jne 0x40cc16
push str.wnimewnime.ini
lea edx, [esi + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004061c0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 1
call fcn.004060a0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2bc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40cd6a
cmp eax, 2
jne 0x40cc71
push str.wnwbwnwb.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004061c0
add esp, 0xc
mov byte [esp + 0x2bc], 2
push eax
lea ecx, [esp + 0x18]
call fcn.004060a0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2bc], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cd6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40cd6a
cmp eax, 3
jne 0x40cc96
push str.wnpywnpy.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004061c0
add esp, 0xc
mov byte [esp + 0x2bc], 3
jmp 0x40cc39
cmp eax, 4
jne 0x40ccbe
push str.wnpywnpy.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004061c0
add esp, 0xc
mov byte [esp + 0x2bc], 4
jmp 0x40cc39
cmp eax, 5
jne 0x40cce3
push str.wniewnie.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004061c0
add esp, 0xc
mov byte [esp + 0x2bc], 5
jmp 0x40cd50
cmp eax, 6
jne 0x40cd08
push str.sdg_sdg.ini
lea edx, [esi + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004061c0
add esp, 0xc
mov byte [esp + 0x2bc], 6
jmp 0x40cd50
cmp eax, 7
jne 0x40cd2d
push str.wnsrfwnsrf.ini
lea ecx, [esi + 0x38]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004061c0
add esp, 0xc
mov byte [esp + 0x2bc], 7
jmp 0x40cd50
cmp eax, 8
jne 0x40cd6a
push str.wnkbwnkb.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004061c0
add esp, 0xc
mov byte [esp + 0x2bc], 8
lea ecx, [esp + 0x14]
push eax
call fcn.004060a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2bc], bl
call fcn.004014e0
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push 0x80
lea eax, [esp + 0x30]
push eax
push 0x42b680
push str.ClientID
push str.Globals
call edi
push str.wnsoft.ini
add esi, 0x38
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.004061c0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 9
call fcn.004060a0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2bc], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cddd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x14]
push esi
push 0x10
lea eax, [esp + 0x20]
push eax
push 0x42b680
push str.IsMainUrl
push str.Globals
call edi
push esi
push 0x200
lea ecx, [esp + 0xb0]
push ecx
push 0x42b680
push str.StartPage
push str.Globals
call edi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ce20
mov ecx, dword [ebp + 0xc]
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00405d40
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ce40
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00405d40
lea eax, [esp + 0xa8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ce61
sub eax, edx
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00405d40
lea eax, [esi - 0x10]
mov dword [esp + 0x2bc], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cea0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2ac]
call fcn.0041d05e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10