Function at 0x4076b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x417d26
push eax
mov eax, 0x8800
mov dword fs:[0], esp
call fcn.004106d0
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00401d10
mov edi, str.ParseINFFile__:_key
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.ParseINFFile__:_key
lea ecx, [esp + 0x34]
call fcn.00402330
mov edx, dword [esp + 0x8820]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x8818], ebx
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.0040f3d0
mov edi, str.__section_name
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__section_name
lea ecx, [esp + 0x34]
call fcn.0040f3d0
mov ebp, dword [esp + 0x8824]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x34]
call fcn.0040f3d0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c2dc
lea ecx, [esp + 0x34]
call fcn.0040f3d0
mov cl, byte [esp + 0x2c]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
push edx
push ebx
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x8818], 0xffffffff
push 1
call fcn.00401d10
test ebp, ebp
mov dword [esp + 0x28], ebx
je 0x407bb6
mov esi, dword [esp + 0x8828]
mov ecx, 0x1fff
xor eax, eax
lea edi, [esp + 0x811]
mov byte [esp + 0x810], bl
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x814]
push 0x7fff
push ecx
push ebx
push ebx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea edx, [esp + 0x814]
push 0x7fff
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x407932
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00401d10
mov edi, str.GetPrivateProfileSection___failed__trying_again..._n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x2c], edi
call fcn.00402510
test al, al
je 0x407893
mov eax, dword [ebx + 4]
mov ecx, edi
mov edx, ecx
mov esi, str.GetPrivateProfileSection___failed__trying_again..._n
mov edi, eax
mov eax, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004024f0
mov esi, dword [esp + 0x8838]
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x810]
push esi
push 0x7fff
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea edx, [esp + 0x814]
push 0x7fff
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x40792e
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00401d10
mov edi, str.GetPrivateProfileSection___failed_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x407926
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.GetPrivateProfileSection___failed_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
add esp, 0x10
mov ebx, dword [esp + 0x28]
mov al, byte [esp + 0x810]
lea ebp, [esp + 0x810]
test al, al
mov dword [esp + 0x14], ebp
je 0x407bb6
jmp 0x407956
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
test ebx, ebx
jne 0x407bb6
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x41c628
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
push ecx
call fcn.00410630
push 0x41c1cc
push ebx
call fcn.00410630
add esp, 0x10
test eax, eax
je 0x407b90
push 0x41c624
push ebx
call fcn.00410630
mov edi, eax
add esp, 8
test edi, edi
je 0x407b90
mov ebx, dword [esp + 0x8820]
push edi
push ebx
call fcn.004104a7
add esp, 8
test eax, eax
jne 0x407b90
or ecx, 0xffffffff
mov ebp, 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, byte [esp + 0x13]
mov edx, ecx
mov esi, edi
mov edi, 0x41fa68
mov byte [esp + 0x18], al
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
mov dword [esp + 0x28], ebp
rep movsb byte es:[edi], byte [esi]
mov edi, str.matched:
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], eax
push ecx
push str.matched:
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00402330
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x8818], ebp
mov esi, ecx
mov ecx, dword [0x419218]
sub ecx, edx
cmp ecx, esi
ja 0x407a6e
call fcn.0040f879
test esi, esi
jbe 0x407ab2
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00402510
test al, al
je 0x407ab2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x407ad7
call fcn.0040f879
xor ebx, ebx
cmp esi, ebx
jbe 0x407b1e
mov ecx, dword [esp + 0x20]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x1c]
push ebp
call fcn.00402510
test al, al
je 0x407b1e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, esi
mov esi, 0x41c2dc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], bl
mov cl, byte [esp + 0x18]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x4c], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x28]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp ecx, ebx
mov dword [esp + 0x8818], 0xffffffff
je 0x407b80
mov al, byte [ecx - 1]
test al, al
je 0x407b76
cmp al, 0xff
je 0x407b76
dec al
mov byte [ecx - 1], al
jmp 0x407b80
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
test al, al
mov dword [esp + 0x14], ebp
jne 0x40794e
mov eax, dword [esp + 0x28]
jmp 0x407bb8
mov eax, ebx
mov ecx, dword [esp + 0x8810]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x880c
ret