Function at 0x1001e7c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x498], eax
mov eax, dword [ebp + 0xc]
push 0x104
mov dword [ebp - 0x494], eax
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x49c], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
test ebx, ebx
je 0x1001e822
push 0x10039050
push ebx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
add esp, 8
test edi, edi
je 0x1001e8d2
test eax, eax
jne 0x1001e8d2
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test ebx, ebx
jne 0x1001e883
cmp byte [ebp - 0x108], bl
je 0x1001e866
lea eax, [ebp - 0x108]
push 0x2e
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
add esp, 8
mov byte [eax + 1], bl
lea edi, [ebp - 0x108]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1001e870
mov eax, dword [0x1003a1cc]
mov dword [edi], eax
jmp 0x1001e8ed
cmp byte [ebp - 0x108], 0
je 0x1001e8a2
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
add esp, 8
mov byte [eax + 1], 0
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1001e8a4
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001e8b4
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x49c]
jmp 0x1001e8ed
lea ecx, [ebp - 0x108]
sub ecx, ebx
nop word [eax + eax]
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx + ebx - 1], al
test al, al
jne 0x1001e8e0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 0x104
push esi
push str.Default
push dword [ebp - 0x494]
push dword [ebp - 0x498]
call edi
push str.Default
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x1001ea37
push 0x80
push eax
lea eax, [ebp - 0x188]
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
push 0x2e
push esi
call ebx
add esp, 0x14
test eax, eax
je 0x1001e958
push 0x2e
push esi
call ebx
add esp, 8
jmp 0x1001e95d
mov eax, 0x100389e0
push eax
lea eax, [ebp - 0x188]
push str.Eng_s
push eax
call fcn.1001a8c0
mov ebx, dword [ebp - 0x494]
lea eax, [ebp - 0x108]
add esp, 0xc
push eax
push 0x104
push esi
push str.Default
push ebx
lea eax, [ebp - 0x188]
push eax
call edi
push str.Default
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1001ea37
push 0x208
push eax
lea eax, [ebp - 0x490]
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push 0x100
push eax
mov word [ebp - 0x494], ax
mov byte [ebp - 0x492], al
lea eax, [ebp - 0x288]
push eax
call sub.VCRUNTIME140.dll_memset
push 0
push 0
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath]
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x490]
push str._s_srch_eng.lng
push eax
call fcn.1001a8c0
add esp, 0x3c
lea eax, [ebp - 0x490]
push eax
push 0x104
push esi
push str.Default
push ebx
push dword [ebp - 0x498]
call edi
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
push 0x1003a1f0
push esi
call edi
add esp, 8
test eax, eax
je 0x1001eb4a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ea55
sub ecx, edx
je 0x1001eb4a
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ea70
sub ecx, edx
lea eax, [ecx + 1]
push eax
call sub.mfc140.dll_Ordinal_265
mov ebx, eax
add esp, 4
mov edx, ebx
mov ecx, esi
sub edx, esi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1001ea90
push 0x1003a1f0
push ebx
mov byte [esi], al
call edi
mov edx, eax
add esp, 8
test edx, edx
je 0x1001eb22
mov ecx, ebx
mov byte [edx], 0
mov dword [ebp - 0x498], ecx
nop dword [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1001eac0
sub ebx, ecx
lea edi, [esi - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001ead0
mov esi, dword [ebp - 0x498]
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x49c]
lea edi, [esi - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1001eaf5
mov ax, word [0x1003a1f4]
lea ebx, [edx + 2]
push 0x1003a1f0
mov word [edi], ax
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
push ebx
call edi
mov edx, eax
add esp, 8
test edx, edx
jne 0x1001eab0
mov edx, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1001eb24
sub ebx, edx
dec esi
nop
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001eb30
mov edi, esi
mov ecx, ebx
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100337f6
mov esp, ebp
pop ebp
ret