Function at 0x40b490
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470128
push eax
mov eax, 0x8024
mov dword fs:[0], esp
call fcn.0044c000
push ebx
push esi
push edi
mov dword [esp + 0x8038], 0
mov ecx, 0x1fff
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x48fb24]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8048]
mov edx, dword [esp + 0x8044]
push eax
lea ecx, [esp + 0x34]
push 0x7fff
mov bl, 6
push ecx
push edx
mov byte [esp + 0x8048], bl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov al, byte [esp + 0x30]
lea esi, [esp + 0x30]
test al, al
je 0x40b651
push esi
lea ecx, [esp + 0x10]
call fcn.00462a21
push 0x3d
lea ecx, [esp + 0x10]
call fcn.00462d5f
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.0046168b
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x803c], 7
call fcn.004629d1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8038], bl
call fcn.00462898
lea ecx, [esp + 0x14]
call fcn.00461b07
lea ecx, [esp + 0x14]
call fcn.00461abb
push 0x3d
lea ecx, [esp + 0x10]
call fcn.00462d5f
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00461556
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x803c], 8
call fcn.004629d1
lea ecx, [esp + 0x18]
mov byte [esp + 0x8038], bl
call fcn.00462898
lea ecx, [esp + 0x10]
call fcn.00461b07
lea ecx, [esp + 0x10]
call fcn.00461abb
push ecx
lea edx, [esp + 0x8050]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0046260d
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x8044], 9
call fcn.0046260d
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x8048], 0xa
call fcn.0046260d
push ecx
lea eax, [esp + 0x8050]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x804c], 0xb
call fcn.0046260d
mov byte [esp + 0x8048], bl
call fcn.0040b2a0
add esp, 0x10
test eax, eax
jne 0x40b6f1
push eax
push esi
call fcn.0044c4b6
add esp, 8
inc eax
mov esi, eax
cmp byte [esi], 0
jne 0x40b51b
lea ecx, [esp + 0x10]
mov byte [esp + 0x8038], 5
call fcn.00462898
lea ecx, [esp + 0x14]
mov byte [esp + 0x8038], 4
call fcn.00462898
lea ecx, [esp + 0xc]
mov byte [esp + 0x8038], 3
call fcn.00462898
lea ecx, [esp + 0x8040]
mov byte [esp + 0x8038], 2
call fcn.00462898
lea ecx, [esp + 0x8044]
mov byte [esp + 0x8038], 1
call fcn.00462898
lea ecx, [esp + 0x8048]
mov byte [esp + 0x8038], 0
call fcn.00462898
lea ecx, [esp + 0x804c]
mov dword [esp + 0x8038], 0xffffffff
call fcn.00462898
xor eax, eax
mov ecx, dword [esp + 0x8030]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x8030
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x8038], 5
call fcn.00462898
lea ecx, [esp + 0x14]
mov byte [esp + 0x8038], 4
call fcn.00462898
lea ecx, [esp + 0xc]
mov byte [esp + 0x8038], 3
call fcn.00462898
lea ecx, [esp + 0x8040]
mov byte [esp + 0x8038], 2
call fcn.00462898
lea ecx, [esp + 0x8044]
mov byte [esp + 0x8038], 1
call fcn.00462898
lea ecx, [esp + 0x8048]
mov byte [esp + 0x8038], 0
call fcn.00462898
lea ecx, [esp + 0x804c]
mov dword [esp + 0x8038], 0xffffffff
call fcn.00462898
mov eax, 1
jmp 0x40b6d9