Function at 0x412b28
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x446db4
call fcn.00417a9e
sub esp, 0x304
mov eax, dword [0x44de1c]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp byte [ebp + 8], al
push ebx
push esi
push edi
sete al
mov ebx, 0x412c24
mov esi, ebx
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
test eax, eax
movsb byte es:[edi], byte [esi]
je 0x412c1b
and dword [eax], 0
push dword [ebp + 0xc]
xor eax, eax
mov byte [ebp - 0x20], 0
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x58]
push eax
call fcn.00411971
push 0x44db70
push 0xf
lea eax, [ebp - 0x20]
push eax
push ebx
mov ebx, 0x412b14
push ebx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
je 0x41f495
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f4ba
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.00412136
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
test byte [eax], 2
je 0x412bff
mov edi, dword [ebp + 0xc]
push 4
pop ecx
mov esi, 0x412458
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x41f535
mov edi, dword [ebp + 0xc]
push 4
pop ecx
mov esi, 0x412448
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x41f535
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00417bd0
leave
ret 0xc
mov dword [ebp + 8], 0x80070057
jmp 0x412bff
test cl, cl
je 0x41f4b3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x412bb1
inc eax
inc eax
inc esi
inc esi
test cl, cl
jne 0x412ba5
xor eax, eax
jmp 0x412bb6
mov esi, dword [ebp + 0xc]
push 4
mov eax, 0x416054
pop ecx
mov edi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x412bbe
push eax
lea eax, [ebp - 0x30f]
push eax
call fcn.00411971
push 0x44db70
push 0xf
lea eax, [ebp - 0x20]
push eax
push 0xa
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
call fcn.0040a780
add esp, 0xc
push eax
push ebx
lea eax, [ebp - 0x30f]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x412bbe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41f524
call esi
jmp 0x412bca
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x412bca
mov ebx, 0x104
lea esi, [ebp - 0x2e0]
call fcn.00431413
xor ebx, ebx
cmp byte [ebp - 0x2e0], bl
je 0x412bff
mov edi, dword [ebp + 0xc]
push 4
pop ecx
mov esi, 0x412458
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov eax, 0x184
mov byte [ebp - 0x1dc], bl
mov dword [ebp - 0x2e8], eax
jne 0x41f5cd
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 4], ebx
push 0x20019
push dword [0x44e4d0]
lea ecx, [ebp - 0x2e4]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004025ea
test eax, eax
jne 0x41f5bc
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x1dc]
push eax
push dword [0x44e4d8]
lea ecx, [ebp - 0x2e4]
call fcn.0042b878
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e4]
call fcn.004025d3
jmp 0x41f5fe
mov edi, dword [ebp + 0xc]
push 4
pop ecx
mov esi, 0x412448
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x41f5fe
push eax
lea eax, [ebp - 0x1dc]
push eax
push dword [0x44e508]
push dword [0x44e4f0]
push dword [0x44e4e8]
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
cmp byte [ebp - 0x1dc], bl
mov byte [ebp - 0x59], bl
je 0x412bff
cmp byte [ebp - 0x1dc], 0x22
lea edx, [ebp - 0x1dc]
jne 0x41f622
lea edx, [ebp - 0x1db]
lea eax, [ebp - 0x2e0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41f62b
sub eax, esi
push eax
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.0043beaf
add esp, 0xc
test eax, eax
je 0x412bff
mov eax, dword [ebp + 0x10]
and dword [eax], 0xfffffffd
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0040a79a
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x412bff
push dword [ebp + 0xc]
lea eax, [ebp - 0x30f]
push eax
call fcn.00411971
push 0x44db70
lea eax, [ebp - 0x30]
push eax
push 0x412b14
lea eax, [ebp - 0x30f]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x41f6a0
mov dword [ebp + 8], ebx
jmp 0x412bff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41f6b6
call esi
mov dword [ebp + 8], eax
jmp 0x412bff
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x41f6ae