Function at 0x10012bc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [esp + 0x428]
mov eax, dword [ebx + 0x1c]
push esi
mov esi, dword [esp + 0x434]
push edi
mov edi, dword [esp + 0x428]
test eax, eax
jne 0x10012c14
mov eax, dword [esp + 0x434]
mov ecx, dword [esp + 0x424]
push esi
push eax
push ebp
push ebx
push edi
push ecx
call fcn.10012990
add esp, 0x18
test eax, eax
jne 0x10012c14
mov dword [ebx + 0x1c], 0x40400003
test esi, esi
je 0x10012e39
mov edx, dword [esp + 0x434]
mov eax, dword [0x1004c330]
push 0
push edx
test eax, eax
mov eax, dword [ebx + 0x90]
push esi
push ebp
push 0x104
push eax
je 0x10012c75
mov ecx, dword [esp + 0x43c]
push 0x1004185c
push edi
push ecx
call fcn.10025600
add esp, 0x24
test eax, eax
jne 0x10012ca1
mov edx, dword [esp + 0x434]
push eax
mov eax, dword [ebx + 0x90]
push edx
push esi
push ebp
push 0x104
push eax
push 0x1004186c
jmp 0x10012c7a
push 0x10041874
mov ecx, dword [esp + 0x440]
push edi
push ecx
call fcn.10025600
add esp, 0x24
test eax, eax
jne 0x10012ca1
pop edi
pop esi
mov dword [ebx + 0x1c], 0x80400000
pop ebp
pop ebx
add esp, 0x410
ret
mov edx, dword [ebx + 0x84]
push edx
call fcn.1000b6f0
add esp, 4
test eax, eax
je 0x10012f7d
mov edi, dword [ebx + 0x90]
cmp byte [edi], 0x40
je 0x10012d24
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x10012d18
mov edx, dword [ebx + 0x90]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x218]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x218]
push ecx
push edx
call fcn.10027970
add esp, 8
mov dword [ebx + 0x10], eax
jmp 0x10012e0f
mov dword [ebx + 0x10], closesocket
jmp 0x10012e0f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [esp + 0x14]
push ecx
call esi
mov byte [eax], 0
mov edx, dword [ebx + 0x90]
push 0x5c
push edx
call esi
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x90]
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x90]
or ecx, 0xffffffff
mov edi, edx
lea esi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
mov edx, dword [ebx + 0x90]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
lea edx, [ecx + edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x10], 2
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10012f36
cmp eax, 0x80000000
jne 0x10012f3d
pop edi
pop esi
mov dword [ebx + 0x1c], 0x80400000
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov ecx, dword [ebx + 0x90]
push ebp
push ecx
push 0x1004187c
push edi
call fcn.1000f520
add esp, 0x10
test eax, eax
jne 0x10012e65
pop edi
pop esi
mov dword [ebx + 0x1c], 0x80400000
pop ebp
pop ebx
add esp, 0x410
ret
mov edi, dword [ebx + 0x90]
mov al, byte [edi]
cmp al, 0x5c
je 0x10012f7d
cmp al, 0x40
je 0x10012f7d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x434]
and ecx, 3
mov dl, byte [eax + 9]
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov cl, byte [eax + 8]
lea eax, [esp + 0x31c]
push ecx
push edx
push 0x10041884
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [ebx + 0x90]
mov ecx, 0x41
xor eax, eax
add esp, 0x10
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
push ebp
lea ecx, [esp + 0x118]
push 0x104
push ecx
lea edx, [esp + 0x328]
push 0x1004ccf4
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x114]
test al, al
je 0x10012f4d
mov ecx, dword [ebx + 0x90]
push ebp
lea edx, [esp + 0x320]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000f520
add esp, 0x10
test eax, eax
jne 0x10012f7d
mov dword [ebx + 0x1c], 0x40400003
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
mov cx, word [0x1004188c]
mov edx, dword [ebx + 0x90]
mov word [esp + 0x31c], cx
push ebp
lea eax, [esp + 0x320]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1000f520
add esp, 0x10
test eax, eax
je 0x10012f36
mov edx, dword [ebx + 0x90]
cmp byte [edx], 0x40
je 0x10012ffb
mov edi, dword [ebx + 0x84]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x21c]
push ecx
push edx
call fcn.10006500
add esp, 0xc
mov dword [ebx + 0x10], eax
jmp 0x10013118
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x114]
mov edx, ecx
mov esi, edi
mov edi, ebp
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
call esi
mov byte [eax], 0
mov ecx, dword [ebx + 0x90]
push 0x5c
push ecx
call esi
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x90]
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebx + 0x90]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x90]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
mov edx, dword [ebx + 0x90]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x114]
mov edi, esi
lea edx, [ecx + edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x10], 2
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10012f36
cmp eax, 0x80000000
jne 0x10012f3d
pop edi
pop esi
mov dword [ebx + 0x1c], 0x80400000
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret