Function at 0x4095b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x614
xor eax, eax
push ebx
push ebp
mov dword [esp + 9], eax
push esi
mov esi, dword [esp + 0x624]
mov ebp, ecx
push edi
mov dword [esp + 0x15], eax
mov ecx, 0xff
lea edi, [esp + 0x225]
mov byte [esp + 0x19], al
mov byte [esp + 0x224], al
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x228]
push 0x400
push ecx
stosw word es:[edi], ax
push 0x4808c0
push str.NotUseDefaultDllPath
push 0x480864
mov byte [esp + 0x28], 0
stosb byte es:[edi], al
call ebx
lea edx, [esp + 0x10]
push 0xa
lea eax, [esp + 0x228]
push edx
push eax
mov ecx, ebp
call fcn.00409d80
cmp byte [esp + 0x10], 0x31
jne 0x4096f2
test esi, esi
je 0x4098bd
mov eax, dword [esp + 0x62c]
test eax, eax
je 0x4098bd
mov ebx, dword [esp + 0x630]
test ebx, ebx
je 0x4098bd
mov edi, dword [esp + 0x634]
test edi, edi
jle 0x4098bd
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x409685
push 0x2f
push esi
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
mov byte [ebx], 0
je 0x4096d8
sub eax, esi
inc eax
mov edi, eax
test edi, edi
jle 0x4096b3
mov eax, dword [esp + 0x634]
cmp eax, edi
jle 0x4096b3
push edi
mov ecx, eax
push esi
push ecx
push ebx
call dword [0x4806c8]
add esp, 0x10
mov byte [edi + ebx], 0
mov edi, dword [esp + 0x634]
mov edx, dword [esp + 0x62c]
mov ecx, ebp
push edx
push edi
push ebx
call fcn.00409ed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x614
ret 0x10
push esi
push edi
push ebx
mov ecx, ebp
call fcn.00409b80
push 0x4808a4
push edi
push ebx
mov ecx, ebp
call fcn.00409ed0
jmp 0x4096ba
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x124]
push 0x104
push eax
push 0
push str.DllPath
push str.DefaultValue
call ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
test ecx, ecx
stosb byte es:[edi], al
je 0x409802
lea edx, [esp + 0x120]
mov byte [esp + 0x1c], 0
test edx, edx
lea ecx, [esp + 0x120]
je 0x40977c
mov al, byte [esp + 0x120]
test al, al
je 0x40977c
cmp al, 0x20
je 0x409774
cmp al, 9
jne 0x409797
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40976c
mov eax, dword [esp + 0x62c]
lea ecx, [esp + 0x1c]
push eax
push 0x104
push ecx
mov ecx, ebp
call fcn.00409b80
jmp 0x4097df
lea edx, [esp + 0x120]
lea eax, [esp + 0x1c]
push edx
push 0x104
push eax
mov ecx, ebp
call fcn.00409ed0
push 0x4808a4
lea ecx, [esp + 0x20]
push 0x104
push ecx
mov ecx, ebp
call fcn.00409ed0
mov edx, dword [esp + 0x62c]
lea eax, [esp + 0x1c]
push edx
push 0x104
push eax
mov ecx, ebp
call fcn.00409ed0
lea ecx, [esp + 0x1c]
push 0x3a
push ecx
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x409886
cmp byte [esp + 0x1c], 0x5c
je 0x409886
test esi, esi
je 0x4098bd
lea edx, [esp + 0x1c]
test edx, edx
je 0x4098bd
mov edi, dword [esp + 0x630]
test edi, edi
je 0x4098bd
mov ebx, dword [esp + 0x634]
test ebx, ebx
jle 0x4098bd
push esi
mov ecx, ebp
call fcn.00409f30
test eax, eax
mov byte [edi], 0
je 0x409853
sub eax, esi
mov ecx, ebp
inc eax
push eax
push esi
push ebx
push edi
call fcn.00409e90
jmp 0x40986b
push esi
push ebx
push edi
mov ecx, ebp
call fcn.00409b80
push 0x4808a4
push ebx
push edi
mov ecx, ebp
call fcn.00409ed0
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
push ebx
push edi
call fcn.00409ed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x614
ret 0x10
mov edi, dword [esp + 0x630]
test edi, edi
je 0x4098bd
mov esi, dword [esp + 0x634]
test esi, esi
jle 0x4098bd
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, ebp
call fcn.00409e20
test eax, eax
je 0x4098bd
lea edx, [esp + 0x1c]
push edx
push esi
push edi
call dword [0x4806cc]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x614
ret 0x10