Function at 0x41d1d0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov ecx, 0x481618
call fcn.0042168b
mov esi, eax
test esi, esi
je 0x41d844
cmp dword [esi + 0x10], 0xffffffff
je 0x41d844
lea eax, [esi + 0x14]
mov edi, 0x4810c0
push eax
mov ecx, edi
call fcn.00418851
lea eax, [esi + 0x38]
mov ecx, edi
push eax
call fcn.00418851
lea ebx, [esi + 0x2c]
mov ecx, edi
push ebx
call fcn.00418851
lea eax, [esi + 0x20]
mov ecx, edi
push eax
call fcn.00418851
lea eax, [esi + 0x14]
mov ecx, edi
push eax
call fcn.0041cf5a
lea eax, [esi + 0x38]
mov ecx, edi
push eax
call fcn.0041cf5a
push ebx
mov ecx, edi
call fcn.0041cf5a
push 1
push 0
push 0
push 0x42ec2c
push str._0_
mov ecx, ebx
call fcn.0041f463
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 0xd
call fcn.0041f433
cmp dword [esi + 0x10], 2
jne 0x41d280
push 0
mov ecx, ebx
call fcn.0041e862
lea eax, [esi + 0x20]
mov ecx, edi
push eax
call fcn.0041cf5a
mov ebx, dword [esi + 0x10]
push 0xfffffffffffffffe
pop eax
cmp ebx, eax
je 0x41d844
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
mov edi, 0x7fffffff
lea eax, [esi + 0x14]
push edi
push eax
call fcn.0041dbff
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x38]
push edi
push eax
call fcn.0041dbff
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x2c]
push edi
push eax
call fcn.0041dbff
mov ecx, dword [ebp - 4]
push edi
lea edi, [esi + 0x20]
push edi
call fcn.0041dbff
cmp ebx, 1
mov dword [esi + 0x10], ebx
jne 0x41d499
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41d429
test byte [esi + 0x44], bl
je 0x41d3ef
mov edi, 0x104
push edi
call fcn.00427db9
mov ebx, eax
pop ecx
test ebx, ebx
mov dword [ebp + 8], ebx
jne 0x41d31b
mov ecx, 0x481a9c
call fcn.0041f593
push eax
call fcn.0042024b
pop ecx
push edi
push 0
push ebx
call fcn.004274e0
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x42ebc0
call fcn.0041e69f
lea ecx, [esi + 0x20]
call fcn.0041f593
push eax
push edi
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041f593
push eax
lea ecx, [esi + 0x38]
call fcn.0041f593
push eax
lea ecx, [esi + 0x2c]
call fcn.0041f593
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 1
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041ea64
mov bl, al
neg bl
sbb bl, bl
inc bl
jne 0x41d3d3
push edi
push 0
push dword [ebp + 8]
call fcn.004274e0
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x42e9d4
call fcn.0041e77c
lea ecx, [esi + 0x20]
call fcn.0041f593
push eax
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041f593
push eax
lea ecx, [esi + 0x38]
call fcn.0041f593
push eax
lea ecx, [esi + 0x2c]
call fcn.0041f593
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 1
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.0041ea64
mov bl, al
neg bl
sbb bl, bl
inc bl
push dword [ebp + 8]
call fcn.00427dae
movzx eax, bl
pop ecx
mov dword [esi + 0x54], eax
lea ecx, [ebp - 0x14]
call fcn.0041e765
jmp 0x41d809
cmp eax, 1
jne 0x41d429
mov ecx, edi
call fcn.0041f593
push eax
lea ecx, [esi + 0x14]
call fcn.0041f593
push eax
call fcn.0042802e
pop ecx
push eax
lea ecx, [esi + 0x38]
call fcn.0041f593
push eax
lea ecx, [esi + 0x2c]
call fcn.0041f593
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x41d58c
mov edi, 0x2800
push edi
call fcn.00427db9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41d44c
mov ecx, 0x481a9c
call fcn.0041f593
push eax
call fcn.0042024b
pop ecx
push edi
push 0
push ebx
call fcn.004274e0
add esp, 0xc
lea ecx, [esi + 0x20]
call fcn.0041f593
push eax
push edi
push ebx
lea ecx, [esi + 0x14]
call fcn.0041f593
push eax
lea ecx, [esi + 0x38]
call fcn.0041f593
push eax
lea ecx, [esi + 0x2c]
call fcn.0041f593
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea ecx, [esi + 0x48]
call fcn.0041e77c
push ebx
call fcn.00427dae
pop ecx
jmp 0x41d809
test ebx, ebx
jne 0x41d601
mov ecx, edi
call fcn.0041f593
push eax
call fcn.00427fa3
cmp dword [esi + 0xc], 1
pop ecx
mov ebx, eax
jne 0x41d594
test byte [esi + 0x44], 3
je 0x41d594
lea eax, [ebp + 8]
xor edi, edi
push eax
mov eax, dword [0x4823f8]
or al, 1
lea ecx, [esi + 0x2c]
push eax
push edi
mov dword [ebp + 8], edi
call fcn.0041f593
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test byte [esi + 0x44], 1
mov ebx, eax
jne 0x41d511
lea eax, [ebp - 8]
lea ecx, [esi + 0x38]
push eax
push edi
push edi
push edi
mov dword [ebp - 8], 0x104
call fcn.0041f593
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
push dword [ebp + 8]
xor eax, eax
cmp ebx, edi
sete al
mov dword [esi + 0x54], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x41d809
cmp dword [esi + 0x14], edi
lea ebx, [esi + 0x14]
jbe 0x41d809
and byte [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x13]
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0041f593
push eax
call fcn.0042802e
pop ecx
push eax
call fcn.004291fc
add esp, 0xc
mov ecx, ebx
call fcn.0041f593
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00427a10
pop ecx
test eax, eax
pop ecx
jne 0x41d809
mov ecx, ebx
call fcn.0041f593
push eax
call fcn.0042802e
pop ecx
mov dword [esi + 0x54], eax
jmp 0x41d809
lea eax, [ebp + 8]
lea ecx, [esi + 0x38]
push eax
call fcn.0041f593
push eax
lea ecx, [esi + 0x2c]
call fcn.0041f593
push eax
push ebx
call fcn.00420464
add esp, 0x10
test eax, eax
jge 0x41d5de
cmp dword [esi + 0xc], 1
jne 0x41d5cd
lea ecx, [esi + 0x14]
call fcn.0041f593
push eax
call fcn.00427fa3
jmp 0x41d58b
lea eax, [esi + 0x14]
lea ecx, [esi + 0x48]
push eax
call fcn.0041e7ea
jmp 0x41d809
cmp dword [esi + 0xc], 1
jne 0x41d5ee
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esi + 0x54], eax
jmp 0x41d5f9
push dword [ebp + 8]
lea ecx, [esi + 0x48]
call fcn.0041e77c
push dword [ebp + 8]
jmp 0x41d48e
cmp ebx, 2
jne 0x41d809
and dword [ebp - 8], 0
cmp byte [0x4823f4], 0
jne 0x41d6d7
mov eax, dword [0x481224]
test eax, eax
je 0x41d62b
mov eax, dword [eax + 4]
test eax, eax
jne 0x41d640
mov eax, dword [0x481064]
test eax, eax
je 0x41d63b
mov eax, dword [eax + 4]
test eax, eax
jne 0x41d640
mov eax, dword [0x481290]
push 0
push 0x40581a
push eax
push 0x12
push dword [0x481294]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push str.___Internal_FindingFile___
mov dword [ebp - 8], eax
call fcn.0041fe04
mov ebx, eax
test ebx, ebx
jne 0x41d675
mov ecx, 0x48224c
call fcn.0041f593
mov ebx, eax
lea ecx, [ebp - 0x24]
call fcn.0041e62f
lea ecx, [ebp - 0x14]
call fcn.0041e62f
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0041f593
push eax
call fcn.0042130d
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.0041f593
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0041ecd1
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.0041f593
push eax
push 0x422
push dword [ebp - 8]
call fcn.0042143a
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0041e765
lea ecx, [ebp - 0x24]
call fcn.0041e765
lea ecx, [esi + 0x2c]
call fcn.0041f593
and dword [ebp + 8], 0
mov ebx, eax
cmp byte [ebx], 0
je 0x41d751
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041e69f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
dec eax
push eax
call fcn.0041e84d
cmp al, 0x5c
je 0x41d70e
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0041e862
lea eax, [ebp - 4]
mov ecx, edi
push eax
push 0
call fcn.0041f593
push eax
lea ecx, [ebp - 0x14]
call fcn.0041f593
push eax
call fcn.0040f48e
add esp, 0x10
mov dword [ebp + 8], eax
test eax, eax
jg 0x41d749
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x14]
lea ebx, [ebx + eax + 1]
call fcn.0041e765
jmp 0x41d6e5
lea ecx, [ebp - 0x14]
call fcn.0041e765
test byte [esi + 0x44], 4
jne 0x41d776
cmp dword [ebp + 8], 0
jg 0x41d78e
lea eax, [ebp - 4]
mov ecx, edi
push eax
push 0
call fcn.0041f593
push eax
call fcn.0040f661
add esp, 0xc
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jg 0x41d78e
and dword [esi + 0x54], 0
lea eax, [esi + 0x14]
push eax
lea ecx, [esi + 0x48]
call fcn.0041e7ea
jmp 0x41d7fa
test byte [esi + 0x44], 2
push 1
pop edi
mov dword [esi + 0x54], edi
je 0x41d7c9
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x24]
mov al, byte [eax]
push eax
call fcn.0041e656
lea edi, [esi + 0x48]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0041e7ea
lea ecx, [ebp - 0x24]
call fcn.0041e765
push 0x3a
mov ecx, edi
call fcn.0041e862
jmp 0x41d7f1
push dword [ebp - 4]
lea ebx, [esi + 0x48]
mov ecx, ebx
call fcn.0041e77c
mov eax, dword [ebx]
mov ecx, ebx
dec eax
push eax
call fcn.0041e84d
cmp al, 0x5c
jne 0x41d7f1
mov eax, dword [ebx]
push edi
dec eax
mov ecx, ebx
push eax
call fcn.0041ec13
push dword [ebp - 4]
call fcn.00427dae
pop ecx
cmp dword [ebp - 8], 0
je 0x41d809
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
or dword [esi + 0x10], 0xffffffff
cmp dword [esi + 0xc], 1
jne 0x41d832
lea eax, [ebp - 0x24]
push 0xa
push eax
push dword [esi + 0x54]
call fcn.004291fc
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [esi + 0x48]
push eax
call fcn.0041e77c
jmp 0x41d844
lea ecx, [esi + 0x48]
call fcn.0041f593
push eax
call fcn.0042802e
pop ecx
mov dword [esi + 0x54], eax
pop edi
pop esi
pop ebx
leave
ret 4