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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ddded
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.00784a90
push esi
push edi
push ecx
lea edi, [ebp - 0x1050]
mov ecx, 0x411
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x87fbc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1050], 0
cmp dword [ebp + 0xc], 0
jne 0x4e218c
push 0xab
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFC_appui3.cpp
call fcn.004053b0
test eax, eax
je 0x4e218c
int3
cmp dword [ebp + 0x10], 0
jne 0x4e21a6
push 0xac
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFC_appui3.cpp
call fcn.004053b0
test eax, eax
je 0x4e21a6
int3
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x58], 0
je 0x4e2329
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004e2460
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4e21ed
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00411e20
mov edx, dword [ebp - 0x1050]
or edx, 1
mov dword [ebp - 0x1050], edx
mov eax, dword [ebp + 8]
jmp 0x4e23c8
lea ecx, [ebp - 0x20]
call fcn.0040be70
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov esi, esp
lea eax, [ebp - 0x38]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.00784930
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4e228c
cmp dword [ebp - 0x2c], 1
je 0x4e2250
push 0xb9
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFC_appui3.cpp
call fcn.004053b0
test eax, eax
je 0x4e2250
int3
mov esi, esp
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b9c0
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.00784930
mov dword [ebp - 0x40], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.0042f0c0
nop
mov esi, esp
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00784930
nop
cmp dword [ebp - 0x40], 0
jne 0x4e22f2
cmp dword [ebp - 0x2c], 1
je 0x4e22c0
push 0xc1
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFC_appui3.cpp
call fcn.004053b0
test eax, eax
je 0x4e22c0
int3
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00412700
mov ecx, dword [ebp - 0x1050]
or ecx, 1
mov dword [ebp - 0x1050], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040bc80
mov eax, dword [ebp + 8]
jmp 0x4e23c8
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411e20
mov eax, dword [ebp - 0x1050]
or eax, 1
mov dword [ebp - 0x1050], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040bc80
mov eax, dword [ebp + 8]
jmp 0x4e23c8
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x6c], 0
jne 0x4e2346
push 0xc8
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFC_appui3.cpp
call fcn.004053b0
test eax, eax
je 0x4e2346
int3
cmp dword [ebp + 0x14], 0
jne 0x4e2353
mov dword [ebp + 0x14], 0x850710
mov esi, esp
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x6c]
push ecx
push 0x1000
lea edx, [ebp - 0x1044]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call fcn.00784930
mov dword [ebp - 0x104c], eax
cmp dword [ebp - 0x104c], 0xfff
jb 0x4e23a7
push 0xcf
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFC_appui3.cpp
call fcn.004053b0
test eax, eax
je 0x4e23a7
int3
lea ecx, [ebp - 0x1044]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00411e20
mov edx, dword [ebp - 0x1050]
or edx, 1
mov dword [ebp - 0x1050], edx
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4e2404]
call fcn.007848d0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00783b00
add esp, 0x1050
cmp ebp, esp
call fcn.00784930
mov esp, ebp
pop ebp
ret 0x10