Function at 0x40d320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push edi
push esi
push ebx
sub esp, 0x2d4
lea eax, [esp + 0x29c]
call fcn.00409d90
movsd xmm0, qword [0x53ece0]
movsd qword [esp + 0x2c0], xmm0
movzx esi, word [0x53ece8]
mov word [esp + 0x2c8], si
mov al, byte [0x53ecea]
mov byte [esp + 0x2ca], al
pxor xmm0, xmm0
movaps xmmword [esp + 0x2b0], xmm0
lea eax, [esp + 0x238]
call fcn.004252d0
lea eax, [esp + 0x238]
mov edx, 0x53fb00
mov ecx, 3
call fcn.00401c90
lea eax, [esp + 0x238]
lea edx, [esp + 0x2c0]
mov ecx, 0xb
call fcn.00401c90
lea eax, [esp + 0x238]
mov edx, 0x53fb00
mov ecx, 3
call fcn.00401c90
lea edx, [esp + 0x29c]
mov ecx, edx
and edx, 0xfffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [edx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x40d3ee
mov eax, edx
add edx, ecx
call fcn.00425520
lea edx, [esp + 0x29c]
mov ecx, eax
lea eax, [esp + 0x238]
call fcn.00401c90
lea eax, [esp + 0x2b0]
lea edx, [esp + 0x238]
call fcn.00408c90
movzx edi, byte [esp + 0x2ba]
movzx esi, byte [esp + 0x2bb]
movzx ebx, byte [esp + 0x2bc]
movzx ecx, byte [esp + 0x2bd]
movzx edx, byte [esp + 0x2be]
movzx eax, byte [esp + 0x2bf]
push eax
push edx
push ecx
push ebx
push esi
push edi
movzx eax, byte [esp + 0x2d1]
push eax
movzx edx, byte [esp + 0x2d4]
push edx
movzx ecx, byte [esp + 0x2d7]
push ecx
movzx ebx, byte [esp + 0x2da]
push ebx
movzx esi, byte [esp + 0x2dd]
push esi
movzx edi, byte [esp + 0x2e0]
push edi
movzx eax, byte [esp + 0x2e3]
push eax
movzx edx, byte [esp + 0x2e6]
push edx
movzx ecx, byte [esp + 0x2e9]
push ecx
movzx ebx, byte [esp + 0x2ec]
push ebx
push str._.2X_.2X_.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X_.2X_.2X_.2X_.2X
lea esi, [esp + 0xac]
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
lea esi, [esp + 0x130]
lea eax, [esp + 0xb0]
push eax
push str._s_2
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x54
lea ebx, [esp + 0x168]
push str.MSUTIL.INI
push 0x80
push ebx
push 0x5401d4
push 0x53fba4
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [esp + 0x168]
test eax, eax
jne 0x40d51d
mov eax, 0xfffffffe
mov edx, 0xffffffff
add esp, 0x2d4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov word [esp + 0x1e8], 0x2d
mov word [esp + 0x20f], 0x2b
cmp eax, 0x79
je 0x40d734
lea edx, [esp + 0x2ac]
lea eax, [esp + 0x20f]
push eax
push edx
push str._ld:_38s
push ebx
call dword [sym.imp.MSVCR80.dll_sscanf]
add esp, 0x10
cmp eax, 2
je 0x40d575
mov eax, 0xfffffffe
mov edx, 0xffffffff
add esp, 0x2d4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x2ac]
movdqa xmm0, xmmword [0x53eee0]
cdq
mov dword [esp + 0x298], eax
mov dword [esp + 0x290], eax
mov dword [esp + 0x294], edx
movaps xmmword [esp + 0x2b0], xmm0
lea eax, [esp + 0x10]
call fcn.004252d0
lea eax, [esp + 0x10]
mov edx, str.ck_a_
mov ecx, 5
call fcn.00401c90
lea eax, [esp + 0x10]
lea edx, [esp + 0x290]
mov ecx, 4
call fcn.00401c90
lea edx, [esp + 0x29c]
mov ecx, edx
and edx, 0xfffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [edx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x40d5fe
mov eax, edx
add edx, ecx
call fcn.00425520
lea edx, [esp + 0x29c]
mov ecx, eax
lea eax, [esp + 0x10]
call fcn.00401c90
lea eax, [esp + 0x2b0]
lea edx, [esp + 0x10]
call fcn.00408c90
movzx edi, byte [esp + 0x2ba]
movzx esi, byte [esp + 0x2bb]
movzx ebx, byte [esp + 0x2bc]
movzx ecx, byte [esp + 0x2bd]
movzx edx, byte [esp + 0x2be]
movzx eax, byte [esp + 0x2bf]
push eax
push edx
push ecx
push ebx
push esi
push edi
movzx eax, byte [esp + 0x2d1]
push eax
movzx edx, byte [esp + 0x2d4]
push edx
movzx ecx, byte [esp + 0x2d7]
push ecx
movzx ebx, byte [esp + 0x2da]
push ebx
movzx esi, byte [esp + 0x2dd]
push esi
movzx edi, byte [esp + 0x2e0]
push edi
movzx eax, byte [esp + 0x2e3]
push eax
movzx edx, byte [esp + 0x2e6]
push edx
movzx ecx, byte [esp + 0x2e9]
push ecx
movzx ebx, byte [esp + 0x2ec]
push ebx
push str._.2X_.2X_.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X_.2X_.2X_.2X_.2X
lea esi, [esp + 0x22c]
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x48
lea edi, [esp + 0x1e8]
lea esi, [esp + 0x20f]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40d6f4
test dl, dl
je 0x40d6f0
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40d6f4
add edi, 2
add esi, 2
test dl, dl
jne 0x40d6d4
xor eax, eax
jmp 0x40d6f9
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d714
mov eax, 0xfffffffe
mov edx, 0xffffffff
add esp, 0x2d4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x298]
mov edx, dword [esp + 0x294]
xor eax, 0x8ff6d4a
add esp, 0x2d4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffff
mov edx, eax
add esp, 0x2d4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret