Function at 0x40b150
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b0393
push eax
mov eax, 0x2290
mov dword fs:[0], esp
call fcn.004a7630
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], esi
cmp eax, ebx
je 0x40b319
mov ebp, dword [esp + 0x22b0]
mov eax, dword [0x4c8080]
cmp ebp, ebx
mov dword [esp + 0x14], eax
je 0x40b1ea
mov ecx, ebp
shr ecx, 0x10
jne 0x40b1b4
mov eax, ebp
lea ecx, [esp + 0x14]
and eax, 0xffff
push eax
call fcn.004056a0
jmp 0x40b1ea
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x40b1e6
push esi
lea ecx, [esp + 0x18]
call fcn.00405a70
test eax, eax
je 0x40b1e6
mov ecx, dword [esp + 0x14]
lea edx, [esi + esi]
push edx
lea eax, [esi + esi + 2]
push ebp
push eax
push ecx
call fcn.00404530
add esp, 0x10
mov esi, dword [esp + 0x10]
mov edx, dword [0x4c8080]
mov dword [esp + 0x22a8], ebx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push str.Q360InstallerProduct__s
push ecx
mov byte [esp + 0x22b4], 1
call fcn.00405120
lea edx, [esp + 0x24]
push edx
call fcn.00406e70
add esp, 0x10
test eax, eax
je 0x40b26e
cmp dword [esp + 0x22b4], 2
jne 0x40b23b
mov ecx, dword [esi + 0x1c]
push ebx
call fcn.00437c50
mov eax, dword [esp + 0x18]
mov edx, dword [0x4c8084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b2ee
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40b2ee
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
jmp 0x40b2e6
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x2a0]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x2a4]
push 0x1000
push ecx
push ebp
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a5e0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40b2bd
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x40b2bd
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x40b2bd
mov edx, dword [esp + 0x38]
cmp edx, 0x80
jg 0x40b320
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4c8084]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40b2ee
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40b2ee
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0043b3d0
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4c8084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b319
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40b319
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0043b3d0
add esp, 4
xor eax, eax
jmp 0x40b979
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
mov eax, dword [esp + 0x34]
push edx
push ecx
push eax
push str.TargetDir
push esi
call ebp
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4c8080]
mov si, word [eax]
mov dword [esp + 0x1c], ecx
neg si
sbb esi, esi
and esi, eax
cmp esi, ebx
je 0x40b39d
mov edx, esi
shr edx, 0x10
jne 0x40b36b
and esi, 0xffff
lea ecx, [esp + 0x1c]
push esi
call fcn.004056a0
jmp 0x40b39d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
je 0x40b39d
push edi
lea ecx, [esp + 0x20]
call fcn.00405a70
test eax, eax
je 0x40b39d
mov edx, dword [esp + 0x1c]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00404530
add esp, 0x10
mov eax, dword [0x4c8080]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x22a8], 3
call fcn.00435920
mov eax, dword [0x4c8080]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea ecx, [esp + 0x26]
mov byte [esp + 0x22a8], 0xc
push ecx
lea ecx, [esp + 0x78]
call fcn.0040d890
mov eax, dword [0x4c8080]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
lea edx, [esp + 0x27]
lea ecx, [esp + 0xa4]
push edx
mov byte [esp + 0x22ac], 0x15
call fcn.0040d890
mov eax, 0x14
or edi, 0xffffffff
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov eax, dword [0x4c8080]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf4], eax
mov eax, 0x6400000
mov dword [esp + 0xb8], 0x3e8
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], 1
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe8], edi
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], 0xb4
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], ebx
mov byte [esp + 0x22a8], 0x16
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push 0x4c9474
push ecx
call ebp
mov eax, dword [esp + 0x34]
cmp word [eax], bx
jne 0x40b538
xor esi, esi
xor eax, eax
jmp 0x40b549
cmp eax, ebx
mov esi, eax
jne 0x40b542
xor eax, eax
jmp 0x40b549
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x5c]
call fcn.00405ad0
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, ebp
call fcn.0040be80
mov esi, dword [esp + 0x22b0]
cmp esi, ebx
jne 0x40b578
xor eax, eax
jmp 0x40b57f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x44]
call fcn.00405ad0
cmp dword [esp + 0xc4], ebx
jne 0x40b718
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.004372e0
mov edx, dword [eax]
lea eax, [esp + 0x64]
push edx
push str._s_s
push eax
call fcn.00405120
mov eax, dword [esp + 0x22c4]
add esp, 0x10
cmp eax, 2
jne 0x40b5da
mov ecx, dword [ebp + 0x1c]
call fcn.00437c60
test eax, eax
je 0x40b5da
mov ecx, dword [ebp + 0x1c]
push ebx
call fcn.00437c50
push ebx
push str.SaveToTemp
lea ecx, [esp + 0x30]
call fcn.0040b9a0
dec eax
push esi
neg eax
sbb eax, eax
lea ecx, [esp + 0x40]
inc eax
mov dword [esp + 0xe0], eax
call fcn.00404b70
mov edx, dword [esp + 0x22b4]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.0040c8a0
lea edx, [esp + 0x3c]
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, ebp
call fcn.0040cf60
mov ecx, dword [0x4c8080]
mov dword [esp + 0x20], ecx
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
mov byte [esp + 0x22a8], 0x18
mov esi, 1
push esi
lea edx, [esp + 0x114]
push str.Description_d
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x110]
lea ecx, [esp + 0x28]
push eax
call fcn.0040ac40
push eax
lea ecx, [esp + 0x24]
call fcn.00404b70
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 8], ebx
je 0x40b69d
mov eax, dword [esp + 0xac]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0xac]
call fcn.0040d950
inc esi
cmp esi, 0x64
jl 0x40b647
mov ecx, dword [esp + 0x5c]
cmp dword [ecx - 8], ebx
jne 0x40b8ec
mov edx, dword [esp + 0x90]
cmp dword [edx - 8], ebx
jne 0x40b8ec
lea ecx, [esp + 0x20]
mov byte [esp + 0x22a8], 0x16
call fcn.00405a40
lea ecx, [esp + 0x3c]
mov byte [esp + 0x22a8], 2
call fcn.0040b9c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22a8], 1
call fcn.00405a40
lea ecx, [esp + 0x18]
mov byte [esp + 0x22a8], bl
call fcn.00405a40
lea ecx, [esp + 0x14]
mov dword [esp + 0x22a8], 0xffffffff
call fcn.00405a40
xor eax, eax
jmp 0x40b979
cmp dword [esp + 0x22b8], ebx
je 0x40b888
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, ebx
jl 0x40b740
push eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40b754
mov edx, dword [0x4c8080]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00404b70
lea ecx, [esp + 0x10]
mov byte [esp + 0x22a8], 0x17
call fcn.00405cc0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push ebx
push 0x4c89e4
lea ecx, [esp + 0x18]
call fcn.004050e0
cmp eax, edi
je 0x40b787
push 0x35
jmp 0x40b7c6
push ebx
push str.SAFE
lea ecx, [esp + 0x18]
call fcn.004050e0
cmp eax, edi
je 0x40b79e
push 0x34
jmp 0x40b7c6
push ebx
push 0x4c89d0
lea ecx, [esp + 0x18]
call fcn.004050e0
cmp eax, edi
jne 0x40b7c4
push ebx
push 0x4c89c8
lea ecx, [esp + 0x18]
call fcn.004050e0
cmp eax, edi
je 0x40b7d0
push 0x36
mov ecx, 0x4d7450
call fcn.004033e0
mov eax, dword [esp + 0x22b4]
cmp eax, 2
jne 0x40b7fb
mov ecx, dword [ebp + 0x1c]
push ebx
call fcn.00437c50
lea ecx, [esp + 0x10]
mov byte [esp + 0x22a8], 0x16
call fcn.00405a40
jmp 0x40b5da
cmp eax, ebx
jne 0x40b7e5
cmp dword [esp + 0xc4], ebx
je 0x40b7e5
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
setge al
and eax, 0xff
mov dword [esp + 0x10c], eax
je 0x40b7e5
lea ecx, [esp + 0x10]
mov byte [esp + 0x22a8], 0x16
call fcn.00405a40
lea ecx, [esp + 0x3c]
mov byte [esp + 0x22a8], 2
call fcn.0040b9c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22a8], 1
call fcn.00405a40
lea ecx, [esp + 0x18]
mov byte [esp + 0x22a8], bl
call fcn.00405a40
lea ecx, [esp + 0x14]
mov dword [esp + 0x22a8], edi
call fcn.00405a40
xor eax, eax
jmp 0x40b979
mov ecx, dword [esp + 0x58]
push str.0.0.0.0
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x40b5d1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x22a8], 2
call fcn.0040b9c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22a8], 1
call fcn.00405a40
lea ecx, [esp + 0x18]
mov byte [esp + 0x22a8], bl
call fcn.00405a40
lea ecx, [esp + 0x14]
mov dword [esp + 0x22a8], edi
call fcn.00405a40
xor eax, eax
jmp 0x40b979
lea eax, [esp + 0x18]
lea ecx, [esp + 0xf4]
push eax
call fcn.00404aa0
mov ecx, dword [esp + 0x22b4]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.004372c0
mov ecx, dword [eax + 8]
lea edx, [esp + 0x3c]
push edx
push ecx
mov ecx, eax
call fcn.0040dba0
lea ecx, [esp + 0x20]
mov byte [esp + 0x22a8], 0x16
call fcn.00405a40
lea ecx, [esp + 0x3c]
mov byte [esp + 0x22a8], 2
call fcn.0040b9c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22a8], 1
call fcn.00405a40
lea ecx, [esp + 0x18]
mov byte [esp + 0x22a8], bl
call fcn.00405a40
lea ecx, [esp + 0x14]
mov dword [esp + 0x22a8], 0xffffffff
call fcn.00405a40
mov eax, 1
mov ecx, dword [esp + 0x22a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x229c
ret 0xc