Function at 0x47d270
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x810
push ebx
push esi
mov esi, ecx
push str.TenFact.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
cmp eax, ebx
jne 0x47d541
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x824]
stosw word es:[edi], ax
cmp ebp, ebx
stosb byte es:[edi], al
je 0x47d2bf
cmp byte [ebp], bl
jne 0x47d3b8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, str.Tenio.ini
test eax, eax
je 0x47d310
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x47d310
push eax
mov ecx, esi
call fcn.0047e4d0
push eax
push str._s_s
push 0x103
lea edx, [esp + 0x20]
push 0x104
push edx
call fcn.0047d550
add esp, 0x18
mov byte [esp + 0x113], bl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push 0x104
push ecx
push ebx
push str.Path
push str.Redirect
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x114]
mov ecx, esi
push edx
call fcn.0047e360
test eax, eax
jne 0x47d39d
lea eax, [esp + 0x114]
mov ecx, esi
push eax
call fcn.0047e280
lea ecx, [esp + 0x218]
push 0x104
lea edx, [esp + 0x118]
push ecx
test eax, eax
push edx
je 0x47d422
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0047e390
jmp 0x47d429
lea eax, [esp + 0x10]
lea ecx, [esp + 0x218]
push eax
push 0x104
push ecx
mov ecx, esi
call fcn.0047e1a0
jmp 0x47d429
push 0x3a
push ebp
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x47d414
cmp byte [ebp], 0x5c
je 0x47d414
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x114]
push 0x104
push edx
push ebp
mov ecx, esi
stosb byte es:[edi], al
call fcn.0047e1f0
lea eax, [esp + 0x218]
push 0x104
lea ecx, [esp + 0x118]
push eax
push ecx
jmp 0x47d422
lea edx, [esp + 0x218]
push 0x104
push edx
push ebp
mov ecx, esi
call fcn.0047e000
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x421]
mov byte [esp + 0x420], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x218]
lea ecx, [esp + 0x420]
push eax
push 0x400
push ecx
push ebx
push 0x4d6084
push 0x4d6080
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x10]
push 0x104
lea eax, [esp + 0x424]
push edx
push eax
mov ecx, esi
call fcn.0047e2c0
lea ecx, [esp + 0x10]
pop edi
test ecx, ecx
pop ebp
je 0x47d512
lea edx, [esp + 8]
push 0x3a
push edx
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x47d4d5
cmp byte [esp + 8], 0x5c
jne 0x47d512
lea eax, [esp + 0x314]
test eax, eax
je 0x47d533
lea ecx, [esp + 8]
push 0x104
push ecx
mov ecx, esi
call fcn.0047e4a0
test eax, eax
je 0x47d533
lea edx, [esp + 8]
lea eax, [esp + 0x314]
push edx
push 0x104
push eax
call dword [0x4cb2bc]
add esp, 0xc
jmp 0x47d533
lea ecx, [esp + 0x314]
push 0x104
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x218]
push edx
push eax
mov ecx, esi
call fcn.0047dce0
lea ecx, [esp + 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebx
add esp, 0x810
ret 4