Function at 0x41c870
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc90
mov eax, dword [0x4b06f0]
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.0046fe20
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041e4f0
add esp, 0x14
test eax, eax
je 0x41c8b7
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea edx, [ebp - 0x30c]
push str.687474703A2F2F746F6F6C732E6176616E71756573742E636F6D2F41637469766174696F6E2F41637469766174696F6E2E617370
push edx
call fcn.004250b0
mov eax, str.687474703A2F2F746F6F6C732E6176616E71756573742E636F6D2F41637469766174696F6E2F41637469766174696F6E2E617370
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c8d3
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 0x48d8a4
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 0x41c980
lea eax, [ebx + ebx]
call fcn.00470be0
mov eax, esp
mov dword [ebp - 0xc90], eax
test eax, eax
je 0x41c980
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 0x41c982
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 0x48d8a4
push str.APTitle
push str.General
call edi
lea edx, [ebp - 0x20c]
push edx
push 0x100
lea eax, [esi + 0xb04]
push eax
push 0x48d8a4
push str.APMessage
push str.General
call edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x100
lea edx, [esi + 0xd04]
push edx
push 0x48d8a4
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.0041fb70
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 0x48d8a4
push str.APAppPath
push str.General
call edi
cmp word [ebx], 0
je 0x41cb42
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 0x41cab0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xc8c]
push ecx
call fcn.0041e330
add esp, 8
test eax, eax
je 0x41cb3d
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 0x41cae3
lea eax, [ebp - 0x20c]
push eax
push 0x400
lea ecx, [esi + 0x1944]
push ecx
push 0x48d8a4
push str.APCmdLine
push str.General
call edi
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x4a8978
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
neg eax
mov dword [esi + 0x2144], eax
jmp 0x41cb42
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.0046f33a
mov esp, ebp
pop ebp
ret