Function at 0x4036a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43247e
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.0042aab0
mov eax, dword [0x43e0b0]
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
xor edi, edi
mov dword [ebp - 0x1038], edi
mov dword [ebp - 0x1034], edi
mov dword [ebp - 0x1030], edi
mov dword [ebp - 4], edi
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x1018], eax
mov byte [ebp - 4], 1
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1024], esi
mov byte [ebp - 4], 2
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x102c], eax
mov byte [ebp - 4], 3
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x101c], eax
push 0xffe
lea ecx, [ebp - 0x100e]
xor eax, eax
push edi
mov byte [ebp - 4], 4
push ecx
mov word [ebp - 0x1010], ax
call fcn.00420a30
mov ecx, dword [0x441568]
lea edi, [ebp - 0x1014]
call fcn.00415840
push eax
lea edx, [ebp - 0x1028]
push edx
mov ebx, 0x441584
mov byte [ebp - 4], 5
call fcn.00404db0
add esp, 0x14
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4037f5
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4037e5
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4037e5
call fcn.00405330
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4037da
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [ebp - 0x1024], ebx
jmp 0x4037f5
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1024]
push ecx
call fcn.00405280
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1028]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40381b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403841
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x441564]
lea edi, [ebp - 0x1014]
call fcn.00415840
mov byte [ebp - 4], 7
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x1024]
call fcn.00405500
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40388e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1000
lea ecx, [ebp - 0x1010]
push 0
push ecx
call fcn.00420a30
mov esi, dword [ebp - 0x1024]
add esp, 0xc
push esi
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x4388a0
push 0x438684
push 0x438690
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4038d5
sub eax, edx
sar eax, 1
jne 0x403983
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x102c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403936
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40397c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403e27
lea eax, [ebp - 0xfda]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403990
sub eax, edx
lea ecx, [ebp - 0xfda]
sar eax, 1
push ecx
lea edx, [ebp - 0x102c]
push edx
mov ebx, eax
call fcn.00405280
mov ebx, dword [ebp - 0x102c]
mov edx, ebx
lea ecx, [ebp - 0x1014]
call fcn.00415610
lea edi, [ebp - 0x101c]
mov byte [ebp - 4], 8
call fcn.004048a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x101c]
cmp dword [edi - 0xc], 0
jne 0x403a9d
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40397c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403e27
lea eax, [ebp - 0x1014]
lea ecx, [ebp - 0x101c]
call fcn.00404d30
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, 1
jne 0x403ad0
test eax, eax
jns 0x403ac6
push 0x80070057
call fcn.00401540
cmp word [ecx], 0x5c
jne 0x403ad0
mov bl, 1
jmp 0x403ad2
xor bl, bl
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403af4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x403b08
mov eax, dword [edi - 0xc]
lea ecx, [ebp - 0x101c]
dec eax
push ecx
call fcn.004049b0
mov ecx, dword [0x441548]
lea edi, [ebp - 0x1014]
xor ebx, ebx
call fcn.00415840
mov eax, dword [eax]
lea edx, [ebp - 0x1038]
push edx
mov ecx, 0x80000002
call fcn.00405a90
test eax, eax
mov eax, dword [ebp - 0x1014]
sete byte [ebp - 0x101d]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x101d], bl
je 0x403d82
mov edi, 0x200
lea esi, [ebp - 0x1018]
mov dword [ebp - 0x1028], edi
call fcn.00404e60
mov esi, dword [ebp - 0x1018]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x403ba5
mov eax, edi
lea ecx, [ebp - 0x1018]
call fcn.004055c0
mov esi, dword [ebp - 0x1018]
cmp dword [esi - 8], edi
jge 0x403bb4
push 0x80070057
call fcn.00401540
mov dword [esi - 0xc], edi
push str.InstallDir
lea edx, [ebp - 0x1038]
xor ecx, ecx
push edx
lea edi, [ebp - 0x1028]
mov word [esi + 0x400], cx
call fcn.00405b10
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0041f064
add esp, 8
test eax, eax
js 0x403abc
cmp eax, dword [esi - 8]
jg 0x403abc
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
jne 0x403c30
mov esi, dword [ebp - 0x101c]
push str.InstallDir
lea edx, [ebp - 0x1038]
push edx
call fcn.004059d0
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x403c30
push 0xfaf
call fcn.0040b120
add esp, 4
lea esi, [ebp - 0x1018]
mov dword [ebp - 0x1028], 0x200
call fcn.00404e60
mov ecx, dword [0x44154c]
lea edi, [ebp - 0x1014]
call fcn.00415840
mov edi, eax
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x1018]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x403c8c
mov eax, 0x200
lea ecx, [ebp - 0x1018]
call fcn.004055c0
mov esi, dword [ebp - 0x1018]
mov eax, 0x200
cmp dword [esi - 8], eax
jge 0x403ca0
push 0x80070057
call fcn.00401540
mov dword [esi - 0xc], eax
xor eax, eax
mov word [esi + 0x400], ax
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x1038]
push ecx
lea edi, [ebp - 0x1028]
call fcn.00405b10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0041f064
add esp, 8
test eax, eax
js 0x403abc
cmp eax, dword [esi - 8]
jg 0x403abc
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
jne 0x403d7c
lea esi, [ebp - 0x101c]
call fcn.004021f0
mov ecx, dword [0x44154c]
lea edi, [ebp - 0x1014]
call fcn.00415840
mov eax, dword [eax]
mov esi, dword [ebp - 0x101c]
push eax
lea edx, [ebp - 0x1038]
push edx
call fcn.004059d0
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
inc ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x403d7c
push 0xfb1
call fcn.0040b120
add esp, 4
mov esi, dword [ebp - 0x1024]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403da8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x102c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x403e25
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
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.0041e965
mov esp, ebp
pop ebp
ret