Function at 0x405850
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2b5c
call fcn.0040d440
mov dl, byte [0x421d68]
push ebx
push ebp
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
mov byte [esp + 0x74], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x45c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x9c3
xor eax, eax
lea edi, [esp + 0x45d]
mov ebx, dword [esp + 0x2b70]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push ebx
stosb byte es:[edi], al
lea eax, [esp + 0x460]
push 0x2710
push eax
push str.Manufacturer
call ebp
cmp eax, 1
jae 0x4058da
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2b5c
ret
lea edi, [esp + 0x45c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3d
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 + 0x78]
push ecx
call fcn.0040d380
mov edi, eax
push 0x2c
inc edi
push edi
call fcn.0040d380
add esp, 0x10
test eax, eax
je 0x405923
mov byte [eax], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
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]
call fcn.004057e0
cmp al, 1
jle 0x40597b
mov edi, 0x418f4c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea eax, [esp + 0x460]
push 0x2710
lea ecx, [esp + 0x18]
push eax
push ecx
call ebp
cmp eax, 1
jae 0x4059a2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2b5c
ret
mov al, byte [esp + 0x45c]
lea ebx, [esp + 0x45c]
test al, al
je 0x405a9b
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x2b74]
lea eax, [edx + 0x104]
push eax
push ebx
call fcn.0040ce70
add esp, 8
test eax, eax
je 0x405a8b
cmp byte [ebx], 0x3b
jne 0x4059ee
push ebx
call ebp
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0x3b
je 0x4059e2
cmp byte [ebx], 0
je 0x405a9b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3d
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040d380
lea ecx, [esp + 0x7c]
push 0x2c
push ecx
mov esi, eax
call fcn.0040d380
add esp, 0x10
inc eax
inc esi
je 0x405a9b
sub eax, esi
lea ecx, [eax - 1]
test ecx, ecx
je 0x405a9b
mov edx, dword [esp + 0x2b74]
mov eax, ecx
shr ecx, 2
lea edi, [edx + 0x168]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2b70]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
push ebx
call ebp
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x4059be
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2b5c
ret