Function at 0x1003e840
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a81ab
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x100d10d4]
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
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2a0]
push 0x210
push 0
push eax
call fcn.1006e460
add esp, 0xc
mov dword [ebp - 0x90], 0x4f0053
mov dword [ebp - 0x8c], 0x540046
mov dword [ebp - 0x88], 0x410057
mov dword [ebp - 0x84], 0x450052
mov dword [ebp - 0x80], 0x4d005c
mov dword [ebp - 0x7c], 0x630069
mov dword [ebp - 0x78], 0x6f0072
mov dword [ebp - 0x74], 0x6f0073
mov dword [ebp - 0x70], 0x740066
mov dword [ebp - 0x6c], 0x57005c
mov dword [ebp - 0x68], 0x6e0069
mov dword [ebp - 0x64], 0x6f0064
mov dword [ebp - 0x60], 0x730077
mov dword [ebp - 0x5c], 0x43005c
mov dword [ebp - 0x58], 0x720075
mov dword [ebp - 0x54], 0x650072
mov dword [ebp - 0x50], 0x74006e
mov dword [ebp - 0x4c], 0x650056
mov dword [ebp - 0x48], 0x730072
mov dword [ebp - 0x44], 0x6f0069
mov dword [ebp - 0x40], 0x5c006e
mov dword [ebp - 0x3c], 0x700041
mov dword [ebp - 0x38], 0x200070
mov dword [ebp - 0x34], 0x610050
mov dword [ebp - 0x30], 0x680074
mov dword [ebp - 0x2c], 0x5c0073
mov dword [ebp - 0x28], 0x360033
mov dword [ebp - 0x24], 0x730030
mov dword [ebp - 0x20], 0x660061
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2a4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x2a4], 0
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x1003e9e6
mov esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], 0x200
jmp 0x1003ea30
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 0
push eax
push 0x20119
push 0
lea eax, [ebp - 0x90]
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x1003eb02
mov esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], 0x100
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 0x210
push eax
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2b4]
push eax
push 0
push str.Path
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003ea83
mov eax, dword [ebp - 0x2b4]
cmp eax, 1
je 0x1003ea71
cmp eax, 2
jne 0x1003ea83
cmp dword [ebp - 0x2a4], 0
jne 0x1003ea83
xor eax, eax
mov word [ebp - 0x2a0], ax
push str.SoftMgr_somextrainfo.ini
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003eac4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1003eb09
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2b0], 0
jmp 0x1003eb09
lea eax, [ebp - 0x2a0]
push eax
push 0
push str.ItemType
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
cmp eax, 2
setne bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1003eafe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2b0], 0
mov eax, ebx
jmp 0x1003eb0e
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov dword [ebp - 0x2ac], 0
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.10061eb3
mov esp, ebp
pop ebp
ret