Function at 0x10039540
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ade9d
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x100df514]
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 ebx, ecx
mov dword [ebp - 0x830], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x800
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.10080db0
add esp, 0xc
call fcn.1000ac40
mov ecx, eax
test ecx, ecx
je 0x10039984
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x82c], eax
push dword [esi]
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], 0
push str.key__s
push eax
call fcn.10013be0
mov edi, dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
add esp, 0xc
push dword [ebx]
push 0x400
push eax
push 0x100b7070
push edi
push str.Benchmark
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
mov byte [ebp - 4], 1
call fcn.1000ac40
mov ecx, eax
test ecx, ecx
je 0x1003998e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x828], eax
mov eax, 0x100bad14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x828]
test eax, 0xffff0000
jne 0x10039657
movzx eax, ax
push eax
call fcn.1000baf0
jmp 0x10039663
push 1
push 0x100bad14
call fcn.100176a0
mov byte [ebp - 4], 3
call fcn.1000ac40
mov ecx, eax
test ecx, ecx
je 0x10039998
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x824], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x100396a6
movzx eax, ax
lea ecx, [ebp - 0x824]
push eax
call fcn.1000baf0
jmp 0x100396d2
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100396b0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x824]
call fcn.100176a0
lea eax, [ebp - 0x820]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.10052ef0
mov edx, dword [ebp - 0x824]
or ebx, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039717
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x828]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10039738
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x81c]
mov eax, dword [ebp - 0x814]
cmp dword [ebp - 0x818], esi
je 0x10039770
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.1001c4a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 0x81c]
add eax, 4
mov dword [ebp - 0x81c], eax
jmp 0x10039783
push eax
push esi
lea ecx, [ebp - 0x820]
call fcn.10039030
mov eax, dword [ebp - 0x81c]
mov esi, dword [ebp - 0x820]
sub eax, esi
sar eax, 2
cmp eax, 6
jbe 0x10039883
nop word [eax + eax]
mov eax, dword [ebp - 0x830]
push dword [eax]
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x81c]
lea edi, [esi + 4]
mov dword [ebp - 0x834], eax
cmp edi, eax
je 0x10039840
sub edi, esi
nop dword [eax]
mov ecx, dword [edi + esi]
mov ebx, dword [esi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x10039829
cmp dword [ebx + 0xc], 0
jl 0x1003981e
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x1003981e
push edx
call fcn.1001c4a0
add esp, 4
mov dword [ebp - 0x814], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10039817
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x814]
add eax, 0x10
mov dword [esi], eax
jmp 0x10039829
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.100176a0
add esi, 4
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x834]
jne 0x100397d0
mov eax, dword [ebp - 0x81c]
or ebx, 0xffffffff
mov edx, dword [eax - 4]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003985a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x81c]
mov esi, dword [ebp - 0x820]
sub eax, 4
mov dword [ebp - 0x81c], eax
sub eax, esi
sar eax, 2
cmp eax, 6
ja 0x100397a0
mov edi, dword [ebp - 0x82c]
call fcn.1000ac40
mov ecx, eax
test ecx, ecx
je 0x100399a2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
mov eax, dword [ebp - 0x81c]
xor ebx, ebx
mov ecx, dword [ebp - 0x820]
sub eax, ecx
sar eax, 2
mov byte [ebp - 4], 6
test eax, eax
je 0x1003990c
nop dword [eax + eax]
cmp dword [esi - 0xc], 0
je 0x100398de
push 1
push 0x100bad14
lea ecx, [ebp - 0x814]
call fcn.10039490
mov ecx, dword [ebp - 0x820]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x814]
push dword [eax - 0xc]
push eax
call fcn.10039490
mov eax, dword [ebp - 0x81c]
inc ebx
mov ecx, dword [ebp - 0x820]
sub eax, ecx
mov esi, dword [ebp - 0x814]
sar eax, 2
cmp ebx, eax
jb 0x100398c0
mov eax, dword [ebp - 0x830]
push dword [eax]
push esi
push edi
push str.Benchmark
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
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 0x1003993f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x820]
call fcn.1001b8b0
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10039966
mov ecx, dword [edi]
push edi
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.100760cb
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000a5d0
push 0x80004005
call fcn.1000a5d0
push 0x80004005
call fcn.1000a5d0
push 0x80004005
call fcn.1000a5d0
int3