Function at 0x1002a460
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a83d3
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x100d5688]
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.100136d0
add esp, 8
mov eax, dword [ebp - 0x48]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x1002a72b
call fcn.100079d0
mov ecx, eax
test ecx, ecx
je 0x1002a772
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 0x1002a506
push 0x800
lea ecx, [ebp - 0x44]
call fcn.10007ab0
mov edx, dword [ebp - 0x44]
cmp dword [edx - 8], 0x800
jl 0x1002a768
push esi
push 0x800
mov dword [edx - 0xc], 0x800
xor ecx, ecx
mov eax, dword [ebp - 0x44]
push edx
push 0x100ae618
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.10085bc2
mov edx, eax
add esp, 8
test edx, edx
js 0x1002a768
mov ecx, dword [ebp - 0x44]
cmp edx, dword [ecx - 8]
jg 0x1002a768
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x44]
mov word [eax + edx*2], cx
cmp esi, 0x7ff
je 0x1002a583
cmp esi, 0x7fe
jne 0x1002a5e4
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 0x1002a5aa
push 0x1000
lea ecx, [ebp - 0x44]
call fcn.10007ab0
mov ecx, dword [ebp - 0x44]
cmp dword [ecx - 8], 0x1000
jl 0x1002a768
push esi
push 0x1000
mov dword [ecx - 0xc], 0x1000
xor edx, edx
mov eax, dword [ebp - 0x44]
push ecx
push 0x100ae618
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.1000bac0
add esp, 8
call fcn.100079d0
mov ecx, eax
test ecx, ecx
je 0x1002a77c
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.100078e0
add esp, 0x10
call fcn.1005dde0
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 0x1002a6f2
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.1000c680
push 3
push 0x100aea94
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.1000c680
mov byte [ebp - 4], 4
call fcn.1005dde0
mov ebx, eax
lea ecx, [ebp - 0xe8]
push 0x9a
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10009a70
mov edi, eax
test esi, esi
mov byte [ebp - 4], 5
mov ecx, 0x100ae9e4
cmovne ecx, esi
push ecx
push edi
call fcn.100092f0
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe8]
call fcn.1000a930
lea ecx, [ebp - 0x28]
call fcn.100074f0
lea ecx, [ebp - 0x40]
call fcn.100074f0
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 0x1002a70d
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 0x1002a72b
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 0x1002a74a
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.1005f06c
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.10007660
push 0x80004005
call fcn.10007660
push 0x80004005
call fcn.10007660
int3