Function at 0x10009320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x1001928c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x41c], 0
push 0x208
push 0
lea eax, [ebp - 0x418]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x210]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x628]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x208
push 0
push 0x10019bf8
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
mov ecx, dword [ebp - 0x630]
call fcn.100092a0
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
and ecx, 0xfff
je 0x100093c4
jmp 0x100096fa
lea edx, [ebp - 0x628]
mov dword [ebp - 0x634], edx
mov eax, dword [ebp - 0x634]
add eax, 2
mov dword [ebp - 0x638], eax
mov ecx, dword [ebp - 0x634]
mov dx, word [ecx]
mov word [ebp - 0x63a], dx
add dword [ebp - 0x634], 2
cmp word [ebp - 0x63a], 0
jne 0x100093df
mov eax, dword [ebp - 0x634]
sub eax, dword [ebp - 0x638]
sar eax, 1
mov dword [ebp - 0x640], eax
mov ecx, dword [ebp - 0x640]
movzx edx, word [ebp + ecx*2 - 0x62a]
cmp edx, 0x5c
je 0x10009440
push 0x1001509c
push 0x104
lea eax, [ebp - 0x628]
push eax
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
lea ecx, [ebp - 0x628]
push ecx
push 0x104
lea edx, [ebp - 0x418]
push edx
call sub.MSVCR90.dll_wcscpy_s
add esp, 0xc
push str.TbConfig.ini
push 0x104
lea eax, [ebp - 0x418]
push eax
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x628]
push eax
push str.DirName
push 0x100151c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x100094bd
lea ecx, [ebp - 0x210]
push ecx
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscpy_s
add esp, 0xc
jmp 0x100094d6
lea edx, [ebp - 0x628]
push edx
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscpy_s
add esp, 0xc
mov dword [ebp - 0x644], 0x10019bf8
mov eax, dword [ebp - 0x644]
add eax, 2
mov dword [ebp - 0x648], eax
mov ecx, dword [ebp - 0x644]
mov dx, word [ecx]
mov word [ebp - 0x64a], dx
add dword [ebp - 0x644], 2
cmp word [ebp - 0x64a], 0
jne 0x100094ef
mov eax, dword [ebp - 0x644]
sub eax, dword [ebp - 0x648]
sar eax, 1
mov dword [ebp - 0x650], eax
mov ecx, dword [ebp - 0x650]
movzx edx, word [ecx*2 + 0x10019bf6]
cmp edx, 0x5c
je 0x1000954e
push 0x100151dc
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
push 0x100151e0
push 0x104
push 0x10019e08
call sub.MSVCR90.dll_wcscpy_s
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x654], eax
mov ecx, dword [ebp - 0x654]
sub ecx, 1
mov dword [ebp - 0x654], ecx
cmp dword [ebp - 0x654], 3
ja case.default.0x10009590
mov edx, dword [ebp - 0x654]
jmp dword [edx*4 + 0x10009710]
push str.TbConsole.log
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
jmp 0x10009679
push str.TbClient.log
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
jmp 0x10009679
push str.TbServer.log
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
jmp 0x10009679
push str.EaseUS_Partition_Master
push 0x104
push 0x10019e08
call sub.MSVCR90.dll_wcscpy_s
add esp, 0xc
push str.epm.log
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
jmp 0x10009679
lea eax, [ebp - 0x418]
push eax
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push 0x1001529c
push str.LogFileName
push 0x100152cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10009662
lea edx, [ebp - 0x628]
push edx
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
jmp 0x10009679
push str.easeus.log
push 0x104
push 0x10019bf8
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0x10019e08
push str.ProductName
push 0x10015314
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x100096be
lea edx, [ebp - 0x210]
push edx
push 0x104
push 0x10019e08
call sub.MSVCR90.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0
push str.Version
push str.LogSection
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
je 0x100096f2
mov ecx, dword [ebp - 0x62c]
mov dword [0x100192e8], ecx
xor edx, edx
jne 0x10009343
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100117a3
mov esp, ebp
pop ebp
ret 4