Function at 0x10027d80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088e43
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x100bb758]
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 - 0x50], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10011c40
add esp, 8
mov eax, dword [ebp - 0x48]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x1002804b
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x10028092
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [ebp - 0x44], edx
mov eax, dword [edx - 8]
mov edi, 1
mov esi, dword [esi]
mov ecx, edi
sub ecx, dword [edx - 4]
sub eax, 0x800
or eax, ecx
mov byte [ebp - 4], 1
jge 0x10027e26
push 0x800
lea ecx, [ebp - 0x44]
call fcn.10006510
mov edx, dword [ebp - 0x44]
cmp dword [edx - 8], 0x800
jl 0x10028088
push esi
push 0x800
mov dword [edx - 0xc], 0x800
xor ecx, ecx
mov eax, dword [ebp - 0x44]
push edx
push 0x1008e5a8
push str.spreadids
mov word [eax + 0x1000], cx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x44]
mov esi, eax
push dword [ecx - 8]
push ecx
call fcn.10066e82
mov edx, eax
add esp, 8
test edx, edx
js 0x10028088
mov ecx, dword [ebp - 0x44]
cmp edx, dword [ecx - 8]
jg 0x10028088
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x44]
mov word [eax + edx*2], cx
cmp esi, 0x7ff
je 0x10027ea3
cmp esi, 0x7fe
jne 0x10027f04
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x50]
mov eax, dword [ecx - 8]
sub edi, dword [ecx - 4]
sub eax, 0x1000
or eax, edi
mov esi, dword [esi]
jge 0x10027eca
push 0x1000
lea ecx, [ebp - 0x44]
call fcn.10006510
mov ecx, dword [ebp - 0x44]
cmp dword [ecx - 8], 0x1000
jl 0x10028088
push esi
push 0x1000
mov dword [ecx - 0xc], 0x1000
xor edx, edx
mov eax, dword [ebp - 0x44]
push ecx
push 0x1008e5a8
push str.spreadids
mov word [eax + 0x2000], dx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push eax
call fcn.1000a3f0
add esp, 8
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x1002809c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x4c]
push str.GetSpreadId__s:_s
push eax
call fcn.10006340
add esp, 0x10
call fcn.10054f50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov esi, dword [ebp - 0x4c]
movzx eax, al
sub eax, 1
jne 0x10028012
push 4
push str.FILE
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000afb0
mov byte [ebp - 4], 4
call fcn.10054f50
mov ebx, eax
lea ecx, [ebp - 0xe8]
push 0x9a
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100083a0
mov edi, eax
test esi, esi
mov byte [ebp - 4], 5
mov ecx, 0x1008e984
cmovne ecx, esi
push ecx
push edi
call fcn.10007c20
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe8]
call fcn.10009260
lea ecx, [ebp - 0x28]
call fcn.10005f50
lea ecx, [ebp - 0x40]
call fcn.10005f50
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002802d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002804b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002806a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100561dc
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.100060c0
push 0x80004005
call fcn.100060c0
push 0x80004005
call fcn.100060c0
int3