Function at 0x4041b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00407100
mov eax, dword [0x419168]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x102c], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, ecx
mov dword [ebp - 0x1028], eax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x410]
je 0x404202
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x18
lea edx, [ebp - 0x20c]
sub edx, esi
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x404210
lea edx, [esi + 0x208]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404227
push edi
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404240
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x20c]
and ecx, 3
push 0x5c
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040722c
mov edx, eax
lea eax, [ebp - 0x20c]
sub edx, eax
add esp, 8
mov ecx, eax
sar edx, 1
inc edx
lea esi, [ecx + 2]
pop edi
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404280
sub ecx, esi
sar ecx, 1
cmp edx, ecx
je 0x4042ac
push 0x411958
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004071c0
add esp, 0xc
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4042b5
mov eax, dword [str.olreg.ini]
mov dword [ecx], eax
mov eax, dword [0x411a90]
mov dword [ecx + 4], eax
mov eax, dword [0x411a94]
mov dword [ecx + 8], eax
mov eax, dword [0x411a98]
mov dword [ecx + 0xc], eax
mov eax, dword [0x411a9c]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404321
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4042f4
sub edx, esi
sar edx, 1
je 0x404321
lea edx, [ebp - 0x414]
sub edx, ecx
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x404310
jmp 0x404347
xor ecx, ecx
jmp 0x404330
movzx eax, word [ecx + str.Default]
mov word [ebp + ecx - 0x414], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x404330
push 0
push 1
push 0x10000000
push 1
push str.EVERYONE
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.004039e0
add esp, 0x1c
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x414]
mov word [ebp + ecx - 0x61c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x404370
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x404391
mov eax, dword [str._Type]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ecx], eax
mov eax, dword [0x411ac8]
mov dword [ecx + 4], eax
mov eax, dword [0x411acc]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x61c]
push eax
push str.OLREG
call esi
mov ecx, dword [ebp - 0x102c]
mov dword [ecx], eax
cmp eax, 1
je 0x4044b6
cmp eax, 2
je 0x4044b6
cmp eax, 4
je 0x40447d
cmp eax, 5
je 0x40447d
cmp eax, 0xb
je 0x40447d
cmp eax, 3
jne 0x404440
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push str.OLREG
call esi
mov esi, dword [ebp - 0x1028]
mov dword [ebx], eax
mov dword [esi], 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0xc
jne 0x404459
mov esi, dword [ebp - 0x1028]
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
jmp 0x4045b0
push str.Unknown_Type
call fcn.004010d0
add esp, 4
mov eax, 2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push str.OLREG
call esi
mov esi, dword [ebp - 0x1028]
mov byte [ebx], al
mov dword [esi], 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x18
xor ecx, ecx
jmp 0x4044c0
movzx eax, word [ebp + ecx - 0x414]
mov word [ebp + ecx - 0x824], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4044c0
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4044e1
mov eax, dword [str._Count]
mov dword [ecx], eax
mov eax, dword [0x411ae0]
mov dword [ecx + 4], eax
mov eax, dword [0x411ae4]
mov dword [ecx + 8], eax
mov ax, word [0x411ae8]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x824]
push eax
push str.OLREG
call esi
mov esi, dword [ebp - 0x1028]
mov dword [esi], eax
test eax, eax
jne 0x4045a8
lea eax, [ebp - 0x20c]
push eax
push 0x400
lea eax, [ebp - 0x1024]
push eax
push 0x410364
lea eax, [ebp - 0x414]
push eax
push str.OLREG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1024]
mov eax, ecx
sub ebx, eax
movzx eax, word [ecx]
mov word [ebx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x404565
lea ecx, [ebp - 0x1024]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404580
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x20c]
push ecx
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push str.OLREG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00405a09
mov esp, ebp
pop ebp
ret 0x18