Function at 0x10057100
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b509b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], esp
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
xor esi, esi
push ecx
push edx
mov ecx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
call fcn.100aebae
lea ecx, [edi + 0x20]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
mov dword [edi], 0x100c9740
mov dword [ebp + 0x14], esi
mov dword [ebp - 0x14], esi
call fcn.1005d7d0
mov dword [edi + 0x24], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push str.SOFTWAREOpen_Executive_4Debug
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100571e7
mov eax, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x18], eax
lea edx, [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x18]
push edx
push eax
push esi
push str.TraceIsapiCalls
push ecx
call ebx
test eax, eax
je 0x100571be
mov dword [ebp + 0x14], esi
lea edx, [ebp + 0x1c]
lea eax, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp + 0x18]
push eax
push ecx
push esi
push str.PromptIsapiSecurity
push edx
call ebx
test eax, eax
je 0x100571dd
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x10057544
push 0x104
lea edx, [ebp - 0x144]
push str.cegidbi.config
push edx
call dword [sym.imp.MSVCRT.dll_strncat]
lea eax, [ebp - 0x144]
push 4
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
test eax, eax
jne 0x10057544
push 0x17
push esi
push 0x100e0dc0
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
mov dword [ebp + 0x18], esi
call fcn.1001e310
cmp eax, esi
jge 0x1005725a
cmp eax, 0x80004002
je 0x1005725a
push eax
call fcn.100af593
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 3
cmp eax, esi
jne 0x10057272
push 0x80004003
call fcn.100af593
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xfc]
lea edx, [ebp - 0x144]
mov word [ebp - 0x3c], 8
push edx
call fcn.100af44e
cmp eax, esi
mov dword [ebp - 0x34], eax
jne 0x100572a9
lea eax, [ebp - 0x144]
test eax, eax
je 0x100572a9
push 0x8007000e
call fcn.100af593
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 4
cmp eax, esi
jne 0x100572c1
push 0x80004003
call fcn.100af593
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x3c]
lea edx, [ebp + 0x1e]
push edx
mov ecx, dword [eax]
sub esp, 0x10
mov edi, eax
mov edx, esp
push eax
mov dword [edx], ebx
mov ebx, dword [ebp - 0x38]
mov dword [edx + 4], ebx
mov ebx, dword [ebp - 0x34]
mov dword [edx + 8], ebx
mov ebx, dword [ebp - 0x30]
mov dword [edx + 0xc], ebx
call dword [ecx + 0xe8]
cmp eax, esi
jge 0x100572fc
push 0x100e0dd0
push edi
push eax
call fcn.100af5a1
cmp word [ebp + 0x1e], 0xffff
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 3
sete bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, esi
jge 0x1005731c
push eax
call fcn.100af593
test bl, bl
je 0x10057527
mov ecx, dword [ebp + 0x18]
push str.config
lea edx, [ebp - 0x2c]
push ecx
push edx
call fcn.100a88f0
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 4], 5
mov dword [ebp + 8], ecx
mov edx, dword [eax]
cmp edx, esi
je 0x10057365
push eax
lea ecx, [ebp + 8]
call fcn.1001e540
cmp eax, esi
jge 0x10057362
cmp eax, 0x80004002
je 0x10057362
push eax
call fcn.100af593
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
cmp eax, esi
je 0x10057379
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 8]
cmp ecx, esi
je 0x10057519
push str.debug
lea edx, [ebp - 0x24]
push ecx
push edx
call fcn.100a88f0
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 4], 8
mov dword [ebp + 0xc], ecx
mov edx, dword [eax]
cmp edx, esi
je 0x100573bf
push eax
lea ecx, [ebp + 0xc]
call fcn.1001e540
cmp eax, esi
jge 0x100573bc
cmp eax, 0x80004002
je 0x100573bc
push eax
call fcn.100af593
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x100573d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x10057508
push str.oews
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.100a88f0
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x10], ecx
mov edx, dword [eax]
cmp edx, esi
je 0x10057419
push eax
lea ecx, [ebp + 0x10]
call fcn.1001e540
cmp eax, esi
jge 0x10057416
cmp eax, 0x80004002
je 0x10057416
push eax
call fcn.100af593
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
mov bl, 0xd
cmp eax, esi
mov byte [ebp - 4], bl
je 0x1005742e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x100574f7
push str.client
lea edx, [ebp - 0x20]
push ecx
push edx
call fcn.100a88f0
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 4], 0xe
mov dword [ebp + 0x1c], ecx
mov edx, dword [eax]
cmp edx, esi
je 0x10057474
push eax
lea ecx, [ebp + 0x1c]
call fcn.1001e540
cmp eax, esi
jge 0x10057471
cmp eax, 0x80004002
je 0x10057471
push eax
call fcn.100af593
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0x10
cmp eax, esi
je 0x10057488
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x100574e7
push esi
mov edi, 1
push esi
push edi
push str._log
push ecx
call fcn.100a7750
add esp, 0x14
cmp eax, esi
je 0x100574a9
or dword [ebp + 0x14], edi
mov edx, dword [ebp + 0x1c]
push esi
push esi
push edi
push str._statuscallback
push edx
call fcn.100a7750
add esp, 0x14
cmp eax, esi
je 0x100574c9
mov eax, dword [ebp + 0x14]
or al, 2
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x1c]
push esi
push esi
push edi
push str._securityprompt
push eax
call fcn.100a7750
add esp, 0x14
cmp eax, esi
je 0x100574e4
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
mov byte [ebp - 4], bl
je 0x100574f4
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
mov byte [ebp - 4], 0xa
je 0x10057505
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
mov byte [ebp - 4], 7
je 0x10057516
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp + 8]
cmp ecx, esi
mov byte [ebp - 4], 3
je 0x10057527
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x10057538
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
xor esi, esi
mov eax, dword [ebp + 0x14]
mov ecx, eax
shr eax, 1
and ecx, 1
and eax, 1
cmp ecx, esi
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
jne 0x1005755f
cmp eax, esi
je 0x100575a2
lea edx, [ebp - 0x24c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10057595
lea eax, [ebp - 0x24c]
lea ecx, [edi + 0x20]
push eax
push str._soxIsapi.log
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x100575a2
push str.C:oxIsapi.log
lea ecx, [edi + 0x20]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x1c]
xor edx, edx
cmp ecx, esi
setne dl
cmp eax, esi
mov dword [edi + 0x14], edx
je 0x1005764d
push 1
mov ecx, edi
call sub.MFC42.DLL_CInternetSession::EnableStatusCallback
mov eax, dword [edi + 0x20]
push 0x80
push 0x4109
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1005764d
lea ecx, [ebp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 0x1c]
mov ebx, 0x12
mov eax, dword [eax + 4]
mov byte [ebp - 4], bl
push eax
push str.Application_Session_Context_X_n_n
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.MSVCRT.dll__write]
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll__close]
add esp, 0x1c
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.100ae920
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18