Function at 0x462ccb
Capabilities:
Access peb ldr_data
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483fd7
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4b2068]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2068]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov eax, dword [0x4b457c]
mov ebx, ecx
mov ecx, 0x4b457c
mov dword [esp + 0x1c], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor edi, edi
mov esi, 0x206
push esi
lea eax, [esp + 0x242]
push edi
mov dword [esp + 0x460], edi
push eax
mov word [esp + 0x248], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x3a]
push edi
push eax
mov word [esp + 0x40], di
call sub.MSVCR80.dll_memset
lea esi, [ebx + 0xc]
add esp, 0xc
mov dword [esp + 0x30], esi
call fcn.0046356a
mov dword [esp + 0x18], edi
jmp 0x462d77
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x20]
call fcn.00462aeb
push dword [esp + 0x18]
lea eax, [esp + 0x18]
push str.file_d
push eax
mov byte [esp + 0x464], 1
call fcn.00404e7f
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push dword [ebx + 4]
mov edi, 0x104
push edi
lea eax, [esp + 0x244]
push eax
push 0x48f268
push 0x49965c
push dword [esp + 0x28]
call esi
test eax, eax
je 0x462f26
push 0x103
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x462f26
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ecx, [esp + 0x34]
mov ebx, eax
push ecx
lea eax, [esp + 0x28]
call fcn.004023bb
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
lea eax, [esp + 0x240]
push edi
push eax
push 0x48f268
push str.target
push dword [esp + 0x28]
call esi
test eax, eax
je 0x462f26
push 0x103
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x462f26
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ecx, [esp + 0x34]
mov ebx, eax
push ecx
lea eax, [esp + 0x2c]
call fcn.004023bb
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
lea eax, [esp + 0x240]
push edi
push eax
push 0x48f268
push str.outside
push dword [esp + 0x28]
call esi
test eax, eax
jbe 0x462ebb
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ecx, [esp + 0x23c]
mov ebx, eax
push ecx
lea eax, [esp + 0x30]
call fcn.004023bb
push 0x103
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x462f26
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ecx, [esp + 0x34]
mov ebx, eax
push ecx
lea eax, [esp + 0x30]
call fcn.004023bb
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.0046350c
lea esi, [esp + 0x20]
mov byte [esp + 0x458], 0
call fcn.00462b15
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x12c
jl 0x462d73
jmp 0x462f2f
lea esi, [esp + 0x20]
call fcn.00462b15
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x462f3e
xor esi, esi
jmp 0x462f46
mov esi, dword [eax + 8]
sub esi, ecx
sar esi, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040214e
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0047f7b2
mov esp, ebp
pop ebp
ret