Function at 0x40d650
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42cb4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
mov eax, dword [0x437250]
push ebx
push esi
mov dword [esp + 0x2a8], eax
mov eax, dword [0x438664]
mov esi, ecx
push edi
mov ecx, 0x438664
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 0x40d746
push str.wnimewnime.ini
lea edx, [esi + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004019e0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 1
call fcn.00401aa0
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 0x40d89a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40d89a
cmp eax, 2
jne 0x40d7a1
push str.wnwbwnwb.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004019e0
add esp, 0xc
mov byte [esp + 0x2bc], 2
push eax
lea ecx, [esp + 0x18]
call fcn.00401aa0
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 0x40d89a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40d89a
cmp eax, 3
jne 0x40d7c6
push str.wnpywnpy.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004019e0
add esp, 0xc
mov byte [esp + 0x2bc], 3
jmp 0x40d769
cmp eax, 4
jne 0x40d7ee
push str.wnpywnpy.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004019e0
add esp, 0xc
mov byte [esp + 0x2bc], 4
jmp 0x40d769
cmp eax, 5
jne 0x40d813
push str.wniewnie.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004019e0
add esp, 0xc
mov byte [esp + 0x2bc], 5
jmp 0x40d880
cmp eax, 6
jne 0x40d838
push str.sdg_sdg.ini
lea edx, [esi + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004019e0
add esp, 0xc
mov byte [esp + 0x2bc], 6
jmp 0x40d880
cmp eax, 7
jne 0x40d85d
push str.wnsrfwnsrf.ini
lea ecx, [esi + 0x38]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004019e0
add esp, 0xc
mov byte [esp + 0x2bc], 7
jmp 0x40d880
cmp eax, 8
jne 0x40d89a
push str.wnkbwnkb.ini
lea eax, [esi + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004019e0
add esp, 0xc
mov byte [esp + 0x2bc], 8
lea ecx, [esp + 0x14]
push eax
call fcn.00401aa0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2bc], bl
call fcn.00401340
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push 0x80
lea eax, [esp + 0x30]
push eax
push 0x42e760
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.004019e0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c0], 9
call fcn.00401aa0
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 0x40d90d
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 0x42e760
push str.IsMainUrl
push str.Globals
call edi
push esi
push 0x200
lea ecx, [esp + 0xb0]
push ecx
push 0x42e760
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 0x40d950
mov ecx, dword [ebp + 0xc]
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00401890
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d970
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00401890
lea eax, [esp + 0xa8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d991
sub eax, edx
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00401890
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 0x40d9d0
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.0042001e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10