Function at 0x40b3d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc90
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x2148
push 0
push esi
call fcn.0046a390
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040d050
add esp, 0x14
test eax, eax
je 0x40b417
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea edx, [ebp - 0x30c]
push str.687474703A2F2F746F6F6C732E6176616E71756573742E636F6D2F41637469766174696F6E2F41637469766174696F6E2E617370
push edx
call fcn.00413bf0
mov eax, str.687474703A2F2F746F6F6C732E6176616E71756573742E636F6D2F41637469766174696F6E2F41637469766174696F6E2E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b433
sub eax, edx
shr eax, 1
mov byte [ebp + eax - 0x30c], cl
lea eax, [ebp - 0x20c]
push eax
push 1
push str.HasUrlRedirect
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x20c]
push ecx
push 0x100
lea edx, [esi + 0x804]
push edx
neg eax
push 0x487854
sbb eax, eax
push str.UrlRedirectText
neg eax
push str.General
mov dword [esi], eax
call edi
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jg 0x40b4e0
lea eax, [ebx + ebx]
call fcn.0046dbb0
mov eax, esp
mov dword [ebp - 0xc90], eax
test eax, eax
je 0x40b4e0
push ebx
push eax
push 0xffffffffffffffff
xor ecx, ecx
lea edx, [ebp - 0x30c]
push edx
push ecx
push ecx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, dword [ebp - 0xc90]
jmp 0x40b4e2
xor eax, eax
lea ecx, [ebp - 0x20c]
push ecx
push 0x400
lea edx, [esi + 4]
push edx
push eax
push str.UrlRedirect
push str.General
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x80
lea ecx, [esi + 0xa04]
push ecx
push 0x487854
push str.APTitle
push str.General
call edi
lea edx, [ebp - 0x20c]
push edx
push 0x100
lea eax, [esi + 0xb04]
push eax
push 0x487854
push str.APMessage
push str.General
call edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x100
lea edx, [esi + 0xd04]
push edx
push 0x487854
push str.BLMessage
push str.General
call edi
push 0x40
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp - 0x48c]
push 0x80
push ecx
call fcn.0040e6d0
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
push 0x100
lea eax, [esi + 0xf04]
push eax
lea ecx, [ebp - 0x48c]
push ecx
push str.APProductName
push str.General
call edi
lea edx, [ebp - 0x20c]
push edx
push 0x20
lea eax, [esi + 0x1104]
push eax
lea ecx, [ebp - 0x38c]
push ecx
push str.APProductVersion
push str.General
call edi
lea edx, [ebp - 0x20c]
push edx
push 0x400
lea ebx, [esi + 0x1144]
push ebx
push 0x487854
push str.APAppPath
push str.General
call edi
cmp word [ebx], 0
je 0x40b6a2
lea edx, [ebp - 0xc8c]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b610
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xc8c]
push ecx
call fcn.0040ce90
add esp, 8
test eax, eax
je 0x40b69d
lea eax, [ebp - 0xc8c]
mov edx, eax
sub ebx, edx
movzx ecx, word [eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x40b643
lea eax, [ebp - 0x20c]
push eax
push 0x400
lea ecx, [esi + 0x1944]
push ecx
push 0x487854
push str.APCmdLine
push str.General
call edi
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x4a05d8
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
neg eax
mov dword [esi + 0x2144], eax
jmp 0x40b6a2
xor eax, eax
mov word [ebx], ax
lea esp, [ebp - 0xc9c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret